Fixed durability items displaying an item when damage equals 0

This commit is contained in:
Jules 2022-03-01 21:36:43 +01:00
parent 6ca9f19645
commit 94e28f0543

View File

@ -139,6 +139,11 @@ public class DurabilityItem {
}
public DurabilityItem decreaseDurability(int loss) {
// Do nothing
if (loss == 0)
return this;
Validate.isTrue(loss > 0, "Loss must be greater than 0");
/*