From ceb82453819bdfb851f816427700daa24e4f7537 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 27 Dec 2018 20:22:29 +0100 Subject: [PATCH] Removed client side block update handling --- .../java/cr0s/warpdrive/block/BlockAbstractContainer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java index 796652a5..30889540 100644 --- a/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java +++ b/src/main/java/cr0s/warpdrive/block/BlockAbstractContainer.java @@ -201,6 +201,10 @@ public abstract class BlockAbstractContainer extends BlockContainer implements I return; } final TileEntity tileEntity = blockAccess.getTileEntity(blockPos); + if ( tileEntity == null + || tileEntity.getWorld().isRemote ) { + return; + } if (tileEntity instanceof IBlockUpdateDetector) { ((IBlockUpdateDetector) tileEntity).onBlockUpdateDetected(); }