v3.2.0: fixed recent liquid metal change messing with darts
This commit is contained in:
+2
-2
@@ -528,8 +528,8 @@ abstract public class MissileWeapon extends Weapon {
|
|||||||
durability += MAX_DURABILITY;
|
durability += MAX_DURABILITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
//hashcode check is for pre-3.2 saves
|
//hashcode check is for pre-3.2 saves, 0 check is for darts
|
||||||
if (quantity > defaultQuantity() && setID != getClass().getSimpleName().hashCode()){
|
if (quantity > defaultQuantity() && setID != 0 && setID != getClass().getSimpleName().hashCode()){
|
||||||
quantity = defaultQuantity();
|
quantity = defaultQuantity();
|
||||||
durability = MAX_DURABILITY;
|
durability = MAX_DURABILITY;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user