mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-07 02:20:34 +02:00
fix replacement when inv is full.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user