diff options
Diffstat (limited to 'src/main/java/gregtech/client/GT_SoundLoop.java')
-rw-r--r-- | src/main/java/gregtech/client/GT_SoundLoop.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/main/java/gregtech/client/GT_SoundLoop.java b/src/main/java/gregtech/client/GT_SoundLoop.java index 135ef032f5..905f2c20d3 100644 --- a/src/main/java/gregtech/client/GT_SoundLoop.java +++ b/src/main/java/gregtech/client/GT_SoundLoop.java @@ -21,7 +21,7 @@ public class GT_SoundLoop extends MovingSound { private boolean fadeMe = false; public GT_SoundLoop(ResourceLocation p_i45104_1_, IGregTechTileEntity base, boolean stopWhenActive, - boolean stopWhenInactive) { + boolean stopWhenInactive) { super(p_i45104_1_); this.whileActive = stopWhenActive; this.whileInactive = stopWhenInactive; @@ -34,7 +34,7 @@ public class GT_SoundLoop extends MovingSound { } public GT_SoundLoop(ResourceLocation sound, MultiTileBasicMachine base, boolean stopWhenActive, - boolean stopWhenInactive) { + boolean stopWhenInactive) { super(sound); this.whileActive = stopWhenActive; this.whileInactive = stopWhenInactive; @@ -61,13 +61,8 @@ public class GT_SoundLoop extends MovingSound { volume += VOLUME_RAMP; } World world = Minecraft.getMinecraft().thePlayer.worldObj; - donePlaying = world.provider.dimensionId != worldID || !world.checkChunksExist( - (int) xPosF, - (int) yPosF, - (int) zPosF, - (int) xPosF, - (int) yPosF, - (int) zPosF); + donePlaying = world.provider.dimensionId != worldID + || !world.checkChunksExist((int) xPosF, (int) yPosF, (int) zPosF, (int) xPosF, (int) yPosF, (int) zPosF); if (donePlaying) return; TileEntity tile = world.getTileEntity((int) xPosF, (int) yPosF, (int) zPosF); if ((tile instanceof IGregTechTileEntity)) { |