v3.3.5: fixed a rounding err in liquid metal that could give 0 quantity
This commit is contained in:
@@ -148,7 +148,7 @@ public class LiquidMetal extends Item {
|
||||
if (m.quantity() < m.defaultQuantity()){
|
||||
if (quantity()*durabilityPerMetal >= m.durabilityPerUse()){
|
||||
m.quantity(m.quantity()+1);
|
||||
if (maxToUse < quantity()){
|
||||
if (Math.ceil(maxToUse) < quantity()){
|
||||
Catalog.countUses(LiquidMetal.class, (int)Math.ceil(maxToUse));
|
||||
GLog.i(Messages.get(LiquidMetal.class, "apply", (int)Math.ceil(maxToUse)));
|
||||
quantity -= (int)Math.ceil(maxToUse);
|
||||
|
||||
Reference in New Issue
Block a user