fix NPE in BlockConduitBundle#onPlaySound (#201)

This commit is contained in:
Alexdoru authored and GitHub committed 2025-07-25 08:21:32 +07:00
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()) {