Warn in console if min length of fish is greater than or equal to max length

This commit is contained in:
Teriuihi 2023-09-29 23:28:20 +02:00
parent f48431f91b
commit 0e3ecd410a

View File

@ -34,6 +34,9 @@ public class Fish {
public Fish(FishingEvent fishingEvent, Logger logger, float minLength, float maxLength, String fishName, Rarity rarity, ItemStack itemStack) {
this.fishingEvent = fishingEvent;
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.maxLength = maxLength;
this.fishName = fishName;