Fix metamorphosis making entities disappear

This commit is contained in:
Electroblob
2018-02-26 18:34:18 +00:00
parent 2ad2b9988b
commit 76f6d431bb
@@ -104,6 +104,8 @@ public class Metamorphosis extends Spell {
newEntity.setHealth(((EntityLivingBase)entityHit).getHealth());
NBTTagCompound tag = new NBTTagCompound();
entityHit.writeToNBT(tag);
// Remove the UUID because keeping it the same causes the entity to disappear
WizardryUtilities.removeUniqueId(tag, "UUID");
newEntity.readFromNBT(tag);
entityHit.setDead();