diff --git a/core/src/main/java/com/nisovin/magicspells/spells/buff/ext/DisguiseSpell.java b/core/src/main/java/com/nisovin/magicspells/spells/buff/ext/DisguiseSpell.java index bb70a70a5..40b58ff42 100644 --- a/core/src/main/java/com/nisovin/magicspells/spells/buff/ext/DisguiseSpell.java +++ b/core/src/main/java/com/nisovin/magicspells/spells/buff/ext/DisguiseSpell.java @@ -8,6 +8,8 @@ import org.bukkit.entity.Villager; import org.bukkit.entity.LivingEntity; +import io.github.retrooper.packetevents.util.SpigotConversionUtil; + import com.nisovin.magicspells.MagicSpells; import com.nisovin.magicspells.util.DependsOn; import com.nisovin.magicspells.util.SpellData; @@ -153,7 +155,7 @@ public boolean castBuff(SpellData data) { droppedItemWatcher.setItemStack(entityData.getDroppedItemStack().get(data)); if (watcher instanceof EndermanWatcher endermanWatcher) - endermanWatcher.setItemInMainHand(entityData.getCarriedBlockData().get(data).getMaterial()); + endermanWatcher.setHeldBlock(SpigotConversionUtil.fromBukkitBlockData(entityData.getCarriedBlockData().get(data))); if (watcher instanceof FallingBlockWatcher fallingBlockWatcher) fallingBlockWatcher.setBlockData(entityData.getFallingBlockData().get(data));