mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-26 14:24:40 +00:00
fix NPE in BlockConduitBundle#onPlaySound (#201)
This commit is contained in:
1 parent
a233f6ba30
commit
d69d77ecae
1 file changed
+1
@@ -1231,6 +1231,7 @@ public class BlockConduitBundle extends BlockEio
|
||||
if ("silence.step".equals(path)) {
|
||||
ISound snd = event.sound;
|
||||
World world = EnderIO.proxy.getClientWorld();
|
||||
if (world == null) return;
|
||||
BlockCoord bc = new BlockCoord(snd.getXPosF(), snd.getYPosF(), snd.getZPosF());
|
||||
TileEntity te = bc.getTileEntity(world);
|
||||
if (te instanceof TileConduitBundle && ((TileConduitBundle) te).hasFacade()) {
|
||||
|
||||
Reference in new issue
Block a user