v2.03.03 with bug fixes (issues #27, #28, #29)

This commit is contained in:
Joachim Stolberg 2019-05-22 11:49:13 +02:00
parent 9becad2984
commit 778ec375ed
2 changed files with 15 additions and 2 deletions

@ -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

@ -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)