Skip to content

Commit

Permalink
Forgetten fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDarkDnKTv committed Apr 20, 2021
1 parent b62b4c3 commit b777a2c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/gregtechmod/api/util/GT_Utility.java
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,6 @@ public static int stackToInt(ItemStack aStack) {
*/
public static int stackToInt(ItemStack aStack, boolean aForceWildcard) {
if (isStackInvalid(aStack)) return -1;
if (aStack.getItem().delegate == null || aStack.getItem().delegate.name() == null) throw new IllegalStateException();
int meta = aForceWildcard ? GregTech_API.ITEM_WILDCARD_DAMAGE : Items.feather.getDamage(aStack);
return System.identityHashCode(aStack.getItem()) * 11 + meta;
}
Expand Down

0 comments on commit b777a2c

Please sign in to comment.