Forgetten fix

This commit is contained in:
TheDarkDnKTv 2021-04-20 18:27:39 +03:00
parent b62b4c31df
commit b777a2c5bd

View file

@ -872,7 +872,6 @@ public class GT_Utility {
*/
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;
}