Closed FireML closed 6 months ago
Adds a check for the selectedFish variable being null.
https://pastebin.com/nkNsLL9H
Only cancels the timingSystem task if it is not null.
https://pastebin.com/1t6v1Kih
Now also logs the exception if a random fish cannot be found.
https://pastebin.com/YL1NqAcr
Adds a check for allowedRarities being empty, and tells console what the problem is.
[20:12:41 INFO]: FireML issued server command: /emf admin competition start 100 SPECIFIC_FISH [20:12:41 ERROR]: [EvenMoreFish] The allowed-rarities list found in the [admin_started] competition config contains no loaded rarities! [20:12:41 ERROR]: [EvenMoreFish] Configured Rarities: [Uncommon, Epic, Legendary] [20:12:41 ERROR]: [EvenMoreFish] Loaded Rarities: [Common]
Catches an IndexOutOfBoundsException
Adds a check for the selectedFish variable being null.
Only cancels the timingSystem task if it is not null.
Now also logs the exception if a random fish cannot be found.
Adds a check for allowedRarities being empty, and tells console what the problem is.
Catches an IndexOutOfBoundsException