You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
wrong data count in EventHook - 'give':
modules\inventory\server.lua
count should be count not data.count, because in swap items hook wrong item count when giving item to another player. if TriggerEventHooks('swapItems', { source = fromInventory.id, fromInventory = fromInventory.id, fromType = fromInventory.type, toInventory = toInventory.id, toType = toInventory.type, count = data.count, action = 'give', fromSlot = data, }) then
The text was updated successfully, but these errors were encountered:
Hello,
wrong data count in EventHook - 'give':
modules\inventory\server.lua
count should be
count
notdata.count
, because in swap items hook wrong item count when giving item to another player.if TriggerEventHooks('swapItems', { source = fromInventory.id, fromInventory = fromInventory.id, fromType = fromInventory.type, toInventory = toInventory.id, toType = toInventory.type, count = data.count, action = 'give', fromSlot = data, }) then
The text was updated successfully, but these errors were encountered: