From a90680eaae7d64d42423f47f4511bb572c1d4fa5 Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Thu, 19 Mar 2015 00:16:36 +0000 Subject: [PATCH] Fix sounds on the client-side of factories --- src/main/java/mekanism/common/tile/TileEntityFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/mekanism/common/tile/TileEntityFactory.java b/src/main/java/mekanism/common/tile/TileEntityFactory.java index f7d39f7f2..157bca4f7 100644 --- a/src/main/java/mekanism/common/tile/TileEntityFactory.java +++ b/src/main/java/mekanism/common/tile/TileEntityFactory.java @@ -110,7 +110,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I public boolean upgraded; @SideOnly(Side.CLIENT) - public IResettableSound[] sounds = new IResettableSound[RecipeType.values().length]; + public IResettableSound[] sounds; /** This machine's current RedstoneControl type. */ public RedstoneControl controlType = RedstoneControl.DISABLED; @@ -177,7 +177,6 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I //Noisy factory.soundURL = soundURL; - factory.sound = sound; //Factory @@ -194,7 +193,6 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I factory.prevEnergy = prevEnergy; factory.gasTank.setGas(gasTank.getGas()); factory.sorting = sorting; - factory.sounds = sounds; factory.controlType = controlType; factory.upgradeComponent = upgradeComponent; factory.upgradeComponent.tileEntity = factory; @@ -937,6 +935,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I @SideOnly(Side.CLIENT) public void initSounds() { + sounds = new IResettableSound[RecipeType.values().length]; for(RecipeType type : RecipeType.values()) { sounds[type.ordinal()] = new TileSound(this, this, type.getSound());