Fixes a client crash when poss ball has no NBT

This commit is contained in:
zontreck 2023-12-26 00:52:06 -07:00
parent fef70df3cb
commit dcbbe8802c
3 changed files with 10 additions and 2 deletions

View file

@ -20,6 +20,7 @@ public class PossBallItem extends Item
}
@Override
public boolean isFoil(ItemStack pStack) {
if(!pStack.hasTag()) return false;
if(pStack.getTag().contains("entity"))
{
return true;