Warn in console if min length of fish is greater than or equal to max length
This commit is contained in:
parent
f48431f91b
commit
0e3ecd410a
|
|
@ -34,6 +34,9 @@ public class Fish {
|
||||||
public Fish(FishingEvent fishingEvent, Logger logger, float minLength, float maxLength, String fishName, Rarity rarity, ItemStack itemStack) {
|
public Fish(FishingEvent fishingEvent, Logger logger, float minLength, float maxLength, String fishName, Rarity rarity, ItemStack itemStack) {
|
||||||
this.fishingEvent = fishingEvent;
|
this.fishingEvent = fishingEvent;
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
|
if (minLength > maxLength || minLength == maxLength) {
|
||||||
|
logger.warning("Min length greater than or equal to max length for %", fishName);
|
||||||
|
}
|
||||||
this.minLength = minLength;
|
this.minLength = minLength;
|
||||||
this.maxLength = maxLength;
|
this.maxLength = maxLength;
|
||||||
this.fishName = fishName;
|
this.fishName = fishName;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user