From 7c0fa58832afc41cb82ca75cc2f081c7a8b7e660 Mon Sep 17 00:00:00 2001 From: TomTom <93038247+AverageGithub@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:26:20 +0200 Subject: [PATCH] Fix null --- .../kotlin/com/artillexstudios/axminions/minions/Minion.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt b/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt index 4c4a520..d8e9552 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/minions/Minion.kt @@ -439,7 +439,7 @@ class Minion( dirty = true if (this.tool?.type == Material.AIR) { - entity.setItem(EquipmentSlot.MAIN_HAND, WrappedItemStack.wrap(ItemStack(Material.AIR))) + entity.setItem(EquipmentSlot.MAIN_HAND, null) } else { entity.setItem(EquipmentSlot.MAIN_HAND, WrappedItemStack.wrap(tool.clone())) } @@ -602,7 +602,7 @@ class Minion( override fun updateArmour() { for (entry in EquipmentSlot.entries) { - entity.setItem(entry, WrappedItemStack.wrap(ItemStack(Material.AIR))) + entity.setItem(entry, null) } setTool(this.tool ?: ItemStack(Material.AIR), false)