diff options
author | Jat15 <jinan15@hotmail.com> | 2013-12-27 15:56:38 +0100 |
---|---|---|
committer | Jat15 <jinan15@hotmail.com> | 2013-12-27 15:56:38 +0100 |
commit | a14f0145c2110eb8c8be2925ddc3f0fd98c0cc78 (patch) | |
tree | 255faeb9c19371a93105761be9b432b5a7b0ce44 | |
parent | 0e63715989db020d0dbd837250f7ec1ebd602407 (diff) | |
download | moreblocks-a14f0145c2110eb8c8be2925ddc3f0fd98c0cc78.tar.gz moreblocks-a14f0145c2110eb8c8be2925ddc3f0fd98c0cc78.tar.bz2 moreblocks-a14f0145c2110eb8c8be2925ddc3f0fd98c0cc78.zip |
Circular_saw limit in inventory input
Use for multiply block in circular saw.
-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; |