From 778ec375ed7554f3b55774045898805de39cd8b1 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 22 May 2019 11:49:13 +0200 Subject: [PATCH] v2.03.03 with bug fixes (issues #27, #28, #29) --- releasenotes.md | 13 +++++++++++++ tubelib/command.lua | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) 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)