mirror of
https://github.com/OgelGames/fakelib.git
synced 2025-06-28 06:30:35 +02:00
@ -139,7 +139,7 @@ function fake_inventory:set_stack(listname, i, stack)
|
|||||||
stack = ItemStack(stack)
|
stack = ItemStack(stack)
|
||||||
i = math.floor(i)
|
i = math.floor(i)
|
||||||
local list = self.lists[tostring(listname)]
|
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
|
return false
|
||||||
end
|
end
|
||||||
list[i] = stack
|
list[i] = stack
|
||||||
|
Reference in New Issue
Block a user