Don't Starve Together

Don't Starve Together

Extra Equip Slot Plus +
KaiTheWizard 9 Sep, 2024 @ 11:04pm
bug
local equipment = inventory:GetEquippedItem(call_map[data.eslot]) if equipment and equipment.components.equippable.onequipfn then if equipment.task ~= nil then equipment.task:Cancel() equipment.task = nil end --print("----------:" .. equipment.prefab) equipment.components.equippable.onequipfn(equipment, inst)

this codes make when you unequip something on the new slot, they call the equip from the original slot (which is wrong)