mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Fixed 'downgrade on death'
This commit is contained in:
parent
d06d3c1eed
commit
4d478fff98
@ -198,7 +198,7 @@ public class DurabilityItem {
|
|||||||
UpgradeData data = new UpgradeData(new JsonParser().parse((String) uTag.getValue()).getAsJsonObject());
|
UpgradeData data = new UpgradeData(new JsonParser().parse((String) uTag.getValue()).getAsJsonObject());
|
||||||
|
|
||||||
// If it cannot be downgraded (reached min), DEATH
|
// If it cannot be downgraded (reached min), DEATH
|
||||||
if (data.getLevel() > data.getMin())
|
if (data.getLevel() <= data.getMin())
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Remove one level and FULLY repair item
|
// Remove one level and FULLY repair item
|
||||||
|
Loading…
Reference in New Issue
Block a user