From e6fbc44604f345dcb6b72bdeb249b022239d8f81 Mon Sep 17 00:00:00 2001 From: NichtStudioCode <51272202+NichtStudioCode@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:17:20 +0100 Subject: [PATCH] Fix star armor max stack size --- .../nova/addon/machines/registry/Items.kt | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/machines/src/main/kotlin/xyz/xenondevs/nova/addon/machines/registry/Items.kt b/machines/src/main/kotlin/xyz/xenondevs/nova/addon/machines/registry/Items.kt index fb16724..e587161 100644 --- a/machines/src/main/kotlin/xyz/xenondevs/nova/addon/machines/registry/Items.kt +++ b/machines/src/main/kotlin/xyz/xenondevs/nova/addon/machines/registry/Items.kt @@ -118,10 +118,22 @@ object Items : ItemRegistry by Machines.registry { } // Armor - val STAR_HELMET = registerItem("star_helmet", Equippable(Equipment.STAR, EquipmentSlot.HEAD, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) - val STAR_CHESTPLATE = registerItem("star_chestplate", Equippable(Equipment.STAR, EquipmentSlot.CHEST, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) - val STAR_LEGGINGS = registerItem("star_leggings", Equippable(Equipment.STAR, EquipmentSlot.LEGS, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) - val STAR_BOOTS = registerItem("star_boots", Equippable(Equipment.STAR, EquipmentSlot.FEET, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) + val STAR_HELMET = item("star_helmet") { + behaviors(Equippable(Equipment.STAR, EquipmentSlot.HEAD, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) + maxStackSize(1) + } + val STAR_CHESTPLATE = item("star_chestplate") { + behaviors(Equippable(Equipment.STAR, EquipmentSlot.CHEST, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) + maxStackSize(1) + } + val STAR_LEGGINGS = item("star_leggings") { + behaviors(Equippable(Equipment.STAR, EquipmentSlot.LEGS, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) + maxStackSize(1) + } + val STAR_BOOTS = item("star_boots") { + behaviors(Equippable(Equipment.STAR, EquipmentSlot.FEET, equipSound = Sounds.ARMOR_EQUIP_STAR), Damageable(), Enchantable()) + maxStackSize(1) + } val MOB_CATCHER = registerItem("mob_catcher", MobCatcherBehavior)