Skip to content

Commit ca20012

Browse files
committed
?
1 parent 17a403a commit ca20012

File tree

1 file changed

+3
-1
lines changed
  • eco-api/src/main/java/com/willfp/eco/core/items

1 file changed

+3
-1
lines changed

eco-api/src/main/java/com/willfp/eco/core/items/Items.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ public static CustomItem getCustomItem(@Nullable final ItemStack itemStack) {
389389
return null;
390390
}
391391

392-
System.out.println("Hash for " + itemStack + " * " + itemStack.getType() + ": " + HashedItem.of(itemStack).hashCode() + " where HashedItem is " + HashedItem.of(itemStack).getClass());
392+
if (!(itemStack instanceof TestableItem))
393+
return null;
394+
393395
return CACHE.get(HashedItem.of(itemStack)).map(Items::getOrWrap).orElse(null);
394396
}
395397

0 commit comments

Comments
 (0)