Server hotfix

This commit is contained in:
aidancbrady 2016-01-09 10:07:22 -05:00
parent 99fc98faf5
commit 4d65942f11

View file

@ -31,6 +31,17 @@ public abstract class TileEntityNoisyElectricBlock extends TileEntityElectricBlo
{ {
super(name, maxEnergy); super(name, maxEnergy);
if(worldObj.isRemote)
{
try {
registerSound(soundPath);
} catch(Throwable t) {}
}
}
@SideOnly(Side.CLIENT)
private void registerSound(String soundPath)
{
soundURL = HolidayManager.filterSound(new ResourceLocation("mekanism", "tile." + soundPath)); soundURL = HolidayManager.filterSound(new ResourceLocation("mekanism", "tile." + soundPath));
} }
@ -104,7 +115,9 @@ public abstract class TileEntityNoisyElectricBlock extends TileEntityElectricBlo
if(worldObj.isRemote) if(worldObj.isRemote)
{ {
initSounds(); try {
initSounds();
} catch(Throwable t) {}
} }
} }