Finalize the thrown poss ball

This commit is contained in:
zontreck 2023-12-19 14:51:17 -07:00
parent 74769f63ad
commit 6f0511990e

View file

@ -126,8 +126,14 @@ public class ThrownPossBall extends ThrowableItemProjectile
level().addFreshEntity(xEntity); level().addFreshEntity(xEntity);
} }
tag = new CompoundTag(); LoreContainer cont = new LoreContainer(item);
item.setTag(tag); cont.miscData.LoreData.clear();
cont.commitLore();
if(item.getDamageValue() == 0)
{
item.setTag(new CompoundTag());
}
ItemEntity x = new ItemEntity(level(), position().x, position().y, position().z, item, 0, 0, 0); ItemEntity x = new ItemEntity(level(), position().x, position().y, position().z, item, 0, 0, 0);
level().addFreshEntity(x); level().addFreshEntity(x);