Speed up GUID cache and bookmark recipe lookups (#1119)

This commit is contained in:
slprime authored and GitHub committed 2026-11-13 23:25:20 +02:00
1 parent 1a27b02412
commit 8e6b31de18
7 files changed
+46 -27

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ public class ItemZoom extends Widget implements IContainerInputHandler {
final boolean sameStack = this.stack != null && this.stack.isItemEqual(stack)
&& ItemStack.areItemStackTagsEqual(this.stack, stack);
if (!sameStack) {
this.stack = StackInfo.loadFromNBT(StackInfo.itemStackToNBT(stack), 0);
this.stack = StackInfo.withAmount(stack, 0);
}
} else {
this.stack = null;