fix replacement when inv is full.

This commit is contained in:
fishyWET 2017-11-03 00:35:47 +08:00 committed by GitHub
parent f2ede87a5a
commit a35ea8259f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)