diff --git a/releasenotes.md b/releasenotes.md index e078e78..8ef4151 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -1,6 +1,19 @@ # Release Notes for ModPack TechPack [techpack] +## V2.03.03 (2019-05-22) + +### Additions + +### Removals + +### Changes + +### Fixes +- Bug fixes from obl3pplifp (Blocky Survival) (issues #27, #28) +- Unstackable items vanish when using HighPerf pushers (issue #29) + + ## V2.03.02 (2019-05-09) ### Additions diff --git a/tubelib/command.lua b/tubelib/command.lua index 53ca7bb..6ded477 100644 --- a/tubelib/command.lua +++ b/tubelib/command.lua @@ -472,9 +472,9 @@ end function tubelib.get_stack(meta, listname) local inv = meta:get_inventory() local item = tubelib.get_item(meta, listname) - if item and inv:contains_item(listname, item) then + if item and item:get_stack_max() > 1 and inv:contains_item(listname, item) then -- try to remove a complete stack - item:set_count(98) + item:set_count(math.min(98, item:get_stack_max() - 1)) local taken = inv:remove_item(listname, item) -- add the already removed taken:set_count(taken:get_count() + 1)