fix replacement when inv is full.
This commit is contained in:
parent
f2ede87a5a
commit
a35ea8259f
|
@ -311,6 +311,7 @@ function circular_saw.on_metadata_inventory_take(
|
|||
local player_inv = player:get_inventory()
|
||||
if player_inv:room_for_item("main", input_stack) then
|
||||
player_inv:add_item("main", input_stack)
|
||||
else return
|
||||
end
|
||||
|
||||
circular_saw:reset(pos)
|
||||
|
|
Loading…
Reference in New Issue