diff --git a/src/resonantinduction/ResonantInduction.java b/src/resonantinduction/ResonantInduction.java index 615f14fc..3353e5f9 100644 --- a/src/resonantinduction/ResonantInduction.java +++ b/src/resonantinduction/ResonantInduction.java @@ -81,6 +81,7 @@ public class ResonantInduction */ public static final Configuration CONFIGURATION = new Configuration(new File(Loader.instance().getConfigDir(), NAME + ".cfg")); public static float POWER_PER_COAL = 8; + public static boolean SOUND_FXS = true; /** Block ID by Jyzarc */ private static final int BLOCK_ID_PREFIX = 3200; @@ -116,7 +117,8 @@ public class ResonantInduction // Config POWER_PER_COAL = (float) CONFIGURATION.get(Configuration.CATEGORY_GENERAL, "Coal Wattage", POWER_PER_COAL).getDouble(POWER_PER_COAL); - + SOUND_FXS = CONFIGURATION.get(Configuration.CATEGORY_GENERAL, "Tesla Sound FXs", SOUND_FXS).getBoolean(SOUND_FXS); + // Items itemQuantumEntangler = new ItemQuantumEntangler(getNextItemID()); GameRegistry.registerItem(itemQuantumEntangler, itemQuantumEntangler.getUnlocalizedName()); diff --git a/src/resonantinduction/tesla/TileEntityTesla.java b/src/resonantinduction/tesla/TileEntityTesla.java index f1fa0c9e..6bf36102 100644 --- a/src/resonantinduction/tesla/TileEntityTesla.java +++ b/src/resonantinduction/tesla/TileEntityTesla.java @@ -148,7 +148,7 @@ public class TileEntityTesla extends TileEntityBase implements ITesla, IPacketRe int count = 0; for (ITesla tesla : transferTeslaCoils) { - if (this.zapCounter % 5 == 0) + if (this.zapCounter % 5 == 0 && ResonantInduction.SOUND_FXS) { this.worldObj.playSoundEffect(this.xCoord + 0.5, this.yCoord + 0.5, this.zCoord + 0.5, ResonantInduction.PREFIX + "electricshock", this.getEnergyStored() / 25, (float) (1.3f - 0.5f * ((float) this.dyeID / 16f))); }