From 47f819e0217875b0a15422bb43fc568f74d008c9 Mon Sep 17 00:00:00 2001 From: PrototypeTrousers Date: Sat, 12 Mar 2022 11:03:04 -0300 Subject: [PATCH] invalidate cached itemstack if its gonna be used in a real insertion --- src/main/java/appeng/helpers/DualityInterface.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/appeng/helpers/DualityInterface.java b/src/main/java/appeng/helpers/DualityInterface.java index 8e9b7acb1..177314cec 100644 --- a/src/main/java/appeng/helpers/DualityInterface.java +++ b/src/main/java/appeng/helpers/DualityInterface.java @@ -922,6 +922,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn { changed = true; inputStack.setCount( Ints.saturatedCast( acquired.getStackSize() ) ); + itemStack.setCachedItemStack( null ); final ItemStack issue = adaptor.addItems( inputStack ); if( !issue.isEmpty() ) {