mirror of
https://github.com/joe7575/techpack.git
synced 2024-08-20 21:24:05 +02:00
parent
9becad2984
commit
778ec375ed
@ -1,6 +1,19 @@
|
|||||||
# Release Notes for ModPack TechPack [techpack]
|
# 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)
|
## V2.03.02 (2019-05-09)
|
||||||
|
|
||||||
### Additions
|
### Additions
|
||||||
|
@ -472,9 +472,9 @@ end
|
|||||||
function tubelib.get_stack(meta, listname)
|
function tubelib.get_stack(meta, listname)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
local item = tubelib.get_item(meta, listname)
|
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
|
-- 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)
|
local taken = inv:remove_item(listname, item)
|
||||||
-- add the already removed
|
-- add the already removed
|
||||||
taken:set_count(taken:get_count() + 1)
|
taken:set_count(taken:get_count() + 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user