mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 22:44:04 +09:00
removing stupidity which harmed AmmoMeterProxy
This commit is contained in:
@@ -19,8 +19,10 @@ object AmmoMeterProxy {
|
||||
}
|
||||
else {
|
||||
meter.vitalGetterVal = {
|
||||
if (ItemCodex[currentItem.originalID].stackable)
|
||||
if (ItemCodex[currentItem.originalID].stackable) {
|
||||
//println("[AmmoMeterProxy] currentItem: $currentItem")
|
||||
actor.inventory.getByDynamicID(currentItem.dynamicID)!!.amount.toFloat()
|
||||
}
|
||||
else
|
||||
currentItem.durability
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user