mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 12:20:00 +00:00
Speed up GUID cache and bookmark recipe lookups (#1119)
This commit is contained in:
1 parent
1a27b02412
commit
8e6b31de18
7 files changed
+46
-27
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user