mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
fixed a bug where a dynamic item would not get saved/loaded at all
This commit is contained in:
@@ -19,7 +19,7 @@ object AmmoMeterProxy {
|
||||
else {
|
||||
meter.vitalGetterVal = {
|
||||
if (currentItem.stackable && currentItem.maxDurability == GameItem.DURABILITY_NA) {
|
||||
actor.inventory.invSearchByDynamicID(currentItem.dynamicID)!!.qty.toFloat()
|
||||
actor.inventory.searchByID(currentItem.dynamicID)!!.qty.toFloat()
|
||||
}
|
||||
else
|
||||
currentItem.durability
|
||||
|
||||
Reference in New Issue
Block a user