Skip to content

Commit

Permalink
Improve beacon ambient sound inject
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
ACGaming committed Dec 2, 2024
1 parent 5ecc90a commit 9377f36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.mixin'

version = '1.12.2-1.4.1'
version = '1.4.2'
group = 'mod.acgaming.extrasounds'
archivesBaseName = 'ExtraSounds'
archivesBaseName = 'ExtraSounds-1.12.2'

sourceCompatibility = targetCompatibility = '1.8'
compileJava {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mod/acgaming/extrasounds/ExtraSounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ExtraSounds
{
public static final String MODID = "extrasounds";
public static final String NAME = "Extra Sounds";
public static final String VERSION = "1.12.2-1.4.1";
public static final String VERSION = "1.4.2";
public static final String DEPENDENCIES = "required-after:mixinbooter;after:assetmover;after:jei;after:asmc;after:dsurround";
public static final Logger LOGGER = LogManager.getLogger(NAME);
public static boolean asmc = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public abstract class TileEntityBeaconMixin extends TileEntityLockable implement
@Nullable
private Potion secondaryEffect;

@Inject(method = "updateBeacon", at = @At(value = "TAIL"))
@Inject(method = "updateBeacon", at = @At(value = "INVOKE", target = "Lnet/minecraft/tileentity/TileEntityBeacon;addEffectsToPlayers()V"))
public void esBeaconSoundAmbient(CallbackInfo ci)
{
if (ESConfig.soundToggles.esBeaconSound && !ExtraSounds.asmc && ExtraSounds.assetmover && this.isComplete)
Expand Down

0 comments on commit 9377f36

Please sign in to comment.