mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-09-27 14:50:30 +02:00
Fix dupe bug
This commit is contained in:
parent
ddf8b39f5a
commit
e26e3cc183
|
@ -336,6 +336,7 @@ function circular_saw.on_metadata_inventory_take(
|
|||
local input_stack = inv:get_stack(listname, index)
|
||||
if not input_stack:is_empty() and input_stack:get_name()~=stack:get_name() then
|
||||
local player_inv = player:get_inventory()
|
||||
inv:remove_item(listname, input_stack)
|
||||
if player_inv:room_for_item("main", input_stack) then
|
||||
player_inv:add_item("main", input_stack)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user