From 41f30edb5bf91dab67316367530e7cbc1211e94b Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Fri, 6 Jun 2014 00:17:45 -0500 Subject: [PATCH] Don't update tiles/blocks on world unload. --- me/cluster/implementations/QuantumCluster.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/me/cluster/implementations/QuantumCluster.java b/me/cluster/implementations/QuantumCluster.java index 1300dac5f..e9b9831a6 100644 --- a/me/cluster/implementations/QuantumCluster.java +++ b/me/cluster/implementations/QuantumCluster.java @@ -29,6 +29,7 @@ public class QuantumCluster implements ILocatable, IAECluster public WorldCoord min; public WorldCoord max; public boolean isDestroyed = false; + private boolean updateStatus = true; boolean registered = false; private long thisSide; @@ -85,6 +86,7 @@ public class QuantumCluster implements ILocatable, IAECluster { if ( center.getWorldObj() == e.world ) { + updateStatus = false; destroy(); } } @@ -209,11 +211,14 @@ public class QuantumCluster implements ILocatable, IAECluster MinecraftForge.EVENT_BUS.post( new LocatableEventAnnounce( this, LocatableEvent.Unregister ) ); } - center.updateStatus( null, (byte) -1 ); - - for (TileQuantumBridge r : Ring) + if ( updateStatus ) { - r.updateStatus( null, (byte) -1 ); + center.updateStatus( null, (byte) -1 ); + + for (TileQuantumBridge r : Ring) + { + r.updateStatus( null, (byte) -1 ); + } } center = null;