mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
fix bug invtweak not refill if object is readded in inv if placenode is interrupted
This commit is contained in:
parent
220c04bfc6
commit
1f069ae70f
@ -193,7 +193,7 @@ end
|
||||
function refill(player, stck_name, index)
|
||||
local inv = player:get_inventory()
|
||||
for i,stack in ipairs(inv:get_list("main")) do
|
||||
if stack:get_name() == stck_name then
|
||||
if i ~= index and stack:get_name() == stck_name then
|
||||
inv:set_stack("main", index, stack)
|
||||
stack:clear()
|
||||
inv:set_stack("main", i, stack)
|
||||
|
Loading…
Reference in New Issue
Block a user