Migration added to remove damage tag from existing poss balls to allow stacking again
This commit is contained in:
parent
9ffe626273
commit
1e92e698b0
1 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,12 @@ public class ThrownPossBall extends ThrowableItemProjectile
|
|||
ItemStack item = getItem();
|
||||
CompoundTag tag = item.getTag();
|
||||
if(tag == null)tag=new CompoundTag();
|
||||
|
||||
if(tag.contains(ItemStack.TAG_DAMAGE))
|
||||
{
|
||||
tag.remove(ItemStack.TAG_DAMAGE); // Migrate existing poss balls to remove the obsolete damage tag
|
||||
}
|
||||
|
||||
if(tag.contains("entity"))
|
||||
{
|
||||
if(captured)
|
||||
|
|
Reference in a new issue