mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-09-30 08:10:29 +02:00
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()
|
local player_inv = player:get_inventory()
|
||||||
if player_inv:room_for_item("main", input_stack) then
|
if player_inv:room_for_item("main", input_stack) then
|
||||||
player_inv:add_item("main", input_stack)
|
player_inv:add_item("main", input_stack)
|
||||||
|
else return
|
||||||
end
|
end
|
||||||
|
|
||||||
circular_saw:reset(pos)
|
circular_saw:reset(pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user