Server hotfix
This commit is contained in:
parent
99fc98faf5
commit
4d65942f11
1 changed files with 14 additions and 1 deletions
|
@ -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) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue