mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-31 06:07:34 +01:00
Fixed durability items displaying an item when damage equals 0
This commit is contained in:
parent
6ca9f19645
commit
94e28f0543
@ -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");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user