Avoid crash on 81 line
This commit is contained in:
parent
33f48379a7
commit
533bbeb5ff
1
init.lua
1
init.lua
@ -78,6 +78,7 @@ core.register_on_player_receive_fields(function(player, formname, fields)
|
||||
number = key:gsub("item:","")
|
||||
end
|
||||
local inv = core.get_inventory({type="player", name=target[name]})
|
||||
if not inv then return end
|
||||
local lists = inv:get_lists()
|
||||
local ilist = genlist(lists)
|
||||
local stack = inv:get_list(ilist[(tab[name] or 1)])[tonumber(number)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user