diff options
-rw-r--r-- | circular_saw.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/circular_saw.lua b/circular_saw.lua index 863d0a4..85e456c 100644 --- a/circular_saw.lua +++ b/circular_saw.lua @@ -191,9 +191,9 @@ circular_saw.allow_metadata_inventory_put = function(pos, listname, index, stack for i,v in ipairs(circular_saw.known_stairs) do - if(circular_saw.known_stairs[ i ] == stack:get_name()) then - return stack:get_count(); - end + if(circular_saw.known_stairs[ i ] == stack:get_name()) and inv:room_for_item("input", stack) then + return stack:get_count(); + end end return 0; |