WorldTimeCondition throws ClassCastException
Summary
Worldtime conditions cause errors to be spammed in the console.
Steps to reproduce
- Create a mob with a worldtime condition, like this:
RandomWorldTimeTest:
Type: Testers
Worlds: world
Chance: 1
Priority: 1
PositionType: LAND
Action: ADD
Conditions:
- worldtime{t=2000to10000} true
- Keep an eye on the console and see the errors
Current behavior
The console gets spammed with errors about the worldtime condition: https://pastebin.com/zr8eumrA
Intended correct behavior
There shouldn't be any errors being thrown about it, since the configuration is correct.
Server log file
Debug log snippet