From b0d4f768742d519fc88673725c5ceac01298a4f2 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 11 Aug 2014 18:58:25 -0500 Subject: [PATCH] Fixed Bug: #0871 - Drive priority error after world reload --- tile/storage/TileDrive.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tile/storage/TileDrive.java b/tile/storage/TileDrive.java index 2e95e6b52..52e318716 100644 --- a/tile/storage/TileDrive.java +++ b/tile/storage/TileDrive.java @@ -125,6 +125,7 @@ public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPrior @Override public void readFromNBT(NBTTagCompound data) { + isCached = false; priority = data.getInteger( "priority" ); } @@ -175,8 +176,11 @@ public class TileDrive extends AENetworkInvTile implements IChestOrDrive, IPrior @Override public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removed, ItemStack added) { - isCached = false; // recalculate the storage cell. - updateState(); + if ( isCached ) + { + isCached = false; // recalculate the storage cell. + updateState(); + } try {