Fix a null variable from crashing the server
This commit is contained in:
parent
1cf6695318
commit
9ffe626273
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ public class ThrownPossBall extends ThrowableItemProjectile
|
|||
|
||||
ItemStack item = getItem();
|
||||
CompoundTag tag = item.getTag();
|
||||
if(tag == null)tag=new CompoundTag();
|
||||
if(tag.contains("entity"))
|
||||
{
|
||||
if(captured)
|
||||
|
|
Reference in a new issue