Fix a null variable from crashing the server

This commit is contained in:
Tara Piccari 2024-01-30 15:02:53 -07:00
parent 1cf6695318
commit 9ffe626273

View file

@ -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)