We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a403a commit ca20012Copy full SHA for ca20012
eco-api/src/main/java/com/willfp/eco/core/items/Items.java
@@ -389,7 +389,9 @@ public static CustomItem getCustomItem(@Nullable final ItemStack itemStack) {
389
return null;
390
}
391
392
- System.out.println("Hash for " + itemStack + " * " + itemStack.getType() + ": " + HashedItem.of(itemStack).hashCode() + " where HashedItem is " + HashedItem.of(itemStack).getClass());
+ if (!(itemStack instanceof TestableItem))
393
+ return null;
394
+
395
return CACHE.get(HashedItem.of(itemStack)).map(Items::getOrWrap).orElse(null);
396
397
0 commit comments