Fix sounds on the client-side of factories
This commit is contained in:
parent
efeeb06b77
commit
a90680eaae
1 changed files with 2 additions and 3 deletions
|
@ -110,7 +110,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
|
||||||
public boolean upgraded;
|
public boolean upgraded;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IResettableSound[] sounds = new IResettableSound[RecipeType.values().length];
|
public IResettableSound[] sounds;
|
||||||
|
|
||||||
/** This machine's current RedstoneControl type. */
|
/** This machine's current RedstoneControl type. */
|
||||||
public RedstoneControl controlType = RedstoneControl.DISABLED;
|
public RedstoneControl controlType = RedstoneControl.DISABLED;
|
||||||
|
@ -177,7 +177,6 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
|
||||||
|
|
||||||
//Noisy
|
//Noisy
|
||||||
factory.soundURL = soundURL;
|
factory.soundURL = soundURL;
|
||||||
factory.sound = sound;
|
|
||||||
|
|
||||||
//Factory
|
//Factory
|
||||||
|
|
||||||
|
@ -194,7 +193,6 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
|
||||||
factory.prevEnergy = prevEnergy;
|
factory.prevEnergy = prevEnergy;
|
||||||
factory.gasTank.setGas(gasTank.getGas());
|
factory.gasTank.setGas(gasTank.getGas());
|
||||||
factory.sorting = sorting;
|
factory.sorting = sorting;
|
||||||
factory.sounds = sounds;
|
|
||||||
factory.controlType = controlType;
|
factory.controlType = controlType;
|
||||||
factory.upgradeComponent = upgradeComponent;
|
factory.upgradeComponent = upgradeComponent;
|
||||||
factory.upgradeComponent.tileEntity = factory;
|
factory.upgradeComponent.tileEntity = factory;
|
||||||
|
@ -937,6 +935,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void initSounds()
|
public void initSounds()
|
||||||
{
|
{
|
||||||
|
sounds = new IResettableSound[RecipeType.values().length];
|
||||||
for(RecipeType type : RecipeType.values())
|
for(RecipeType type : RecipeType.values())
|
||||||
{
|
{
|
||||||
sounds[type.ordinal()] = new TileSound(this, this, type.getSound());
|
sounds[type.ordinal()] = new TileSound(this, this, type.getSound());
|
||||||
|
|
Loading…
Reference in a new issue