Fixes a client crash when poss ball has no NBT
This commit is contained in:
parent
fef70df3cb
commit
dcbbe8802c
3 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue