From 20f72cae04a46ab47ba9a8bf825b769e6df15539 Mon Sep 17 00:00:00 2001 From: yueh Date: Fri, 5 Jun 2015 19:25:54 +0200 Subject: [PATCH] No longer invalidate the cache of MEMonitorIInventory on simulate. Should fix #1036 --- .../java/appeng/me/storage/MEMonitorIInventory.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/me/storage/MEMonitorIInventory.java b/src/main/java/appeng/me/storage/MEMonitorIInventory.java index a7fea772..a876cd5a 100644 --- a/src/main/java/appeng/me/storage/MEMonitorIInventory.java +++ b/src/main/java/appeng/me/storage/MEMonitorIInventory.java @@ -85,7 +85,10 @@ public class MEMonitorIInventory implements IMEMonitor out = this.adaptor.addItems( input.getItemStack() ); } - this.onTick(); + if( type == Actionable.MODULATE ) + { + this.onTick(); + } if( out == null ) { @@ -121,7 +124,10 @@ public class MEMonitorIInventory implements IMEMonitor IAEItemStack o = request.copy(); o.setStackSize( out.stackSize ); - this.onTick(); + if( type == Actionable.MODULATE ) + { + this.onTick(); + } return o; }