mirror of
https://github.com/OgelGames/fakelib.git
synced 2025-06-27 06:00:44 +02:00
parent
26580085f3
commit
730f88ff07
@ -139,7 +139,7 @@ function fake_inventory:set_stack(listname, i, stack)
|
||||
stack = ItemStack(stack)
|
||||
i = math.floor(i)
|
||||
local list = self.lists[tostring(listname)]
|
||||
if not list or not list[i] or stack:is_empty() then
|
||||
if not list or not list[i] then
|
||||
return false
|
||||
end
|
||||
list[i] = stack
|
||||
|
Loading…
x
Reference in New Issue
Block a user