Fixed 'downgrade on death'

This commit is contained in:
Indyuce 2022-04-03 00:42:46 +02:00
parent d06d3c1eed
commit 4d478fff98

View File

@ -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