diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 22:10:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 22:42:02 -0400 |
commit | 86ad3e7c6a37699f7f8297a387bf08af74e36629 (patch) | |
tree | dc368b1eaf2cc09b9df2200250890b3038d8cf2d /moreblocks/circular_saw.lua | |
parent | 888b0ebfec8c2eff9015163549a7e47443cb8665 (diff) | |
download | dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.gz dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.bz2 dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.tar.xz dreambuilder_modpack-86ad3e7c6a37699f7f8297a387bf08af74e36629.zip |
Update all core mods
Diffstat (limited to 'moreblocks/circular_saw.lua')
-rw-r--r-- | moreblocks/circular_saw.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/moreblocks/circular_saw.lua b/moreblocks/circular_saw.lua index dd945b8..09fbd90 100644 --- a/moreblocks/circular_saw.lua +++ b/moreblocks/circular_saw.lua @@ -283,7 +283,11 @@ function circular_saw.on_metadata_inventory_put( elseif listname == "recycle" then -- Lets look which shape this represents: local cost = circular_saw:get_cost(inv, stackname) - circular_saw:update_inventory(pos, cost * count) + local input_stack = inv:get_stack("input", 1) + -- check if this would not exceed input itemstack max_stacks + if input_stack:get_count() + ((cost * count) / 8) <= input_stack:get_stack_max() then + circular_saw:update_inventory(pos, cost * count) + end end end |