diff options
author | Calinou <calinou9999spam@gmail.com> | 2014-01-20 10:50:30 -0800 |
---|---|---|
committer | Calinou <calinou9999spam@gmail.com> | 2014-01-20 10:50:30 -0800 |
commit | 396945ed3eaf43404bd117bbf4820ce08584cc4e (patch) | |
tree | 24ccd013f87c86b6baa3cab207a9a3c3e024822f | |
parent | 62f9f00fe8363322c5a5d64e84759743c84fc2bb (diff) | |
parent | a14f0145c2110eb8c8be2925ddc3f0fd98c0cc78 (diff) | |
download | moreblocks-396945ed3eaf43404bd117bbf4820ce08584cc4e.tar.gz moreblocks-396945ed3eaf43404bd117bbf4820ce08584cc4e.tar.bz2 moreblocks-396945ed3eaf43404bd117bbf4820ce08584cc4e.zip |
Merge pull request #11 from Jat15/patch-2
circular_saw limit in inventory input.
-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 88a5325..bc37b21 100644 --- a/circular_saw.lua +++ b/circular_saw.lua @@ -194,9 +194,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; |