From 76f6d431bb8569bc9dfc45076e155b97f1e0b6d3 Mon Sep 17 00:00:00 2001 From: Electroblob <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 26 Feb 2018 18:34:18 +0000 Subject: [PATCH] Fix metamorphosis making entities disappear --- src/main/java/electroblob/wizardry/spell/Metamorphosis.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/electroblob/wizardry/spell/Metamorphosis.java b/src/main/java/electroblob/wizardry/spell/Metamorphosis.java index 0b0de703..12975e93 100644 --- a/src/main/java/electroblob/wizardry/spell/Metamorphosis.java +++ b/src/main/java/electroblob/wizardry/spell/Metamorphosis.java @@ -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();