Bug Verified

WorldTimeCondition throws ClassCastException

#1714 opened by Unknown 5 years ago

Unknownreported this bug

Summary

Worldtime conditions cause errors to be spammed in the console.

Steps to reproduce

  1. 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
  1. 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

https://pastebin.com/xAxjeSUP

Debug log snippet

https://pastebin.com/YyHKiyT0

Unknowncommented

I tested this with the OP and had them come post the bug report here. It happens the exact same for me, as soon as you add a worldtime condition to a random spawner you get spammed in the console with the Long trying to parse to Int error. Im on 1.16.5, newest dev build as of today (build # 3559), paper 466 (newest as of yesterday)

Checked and paper 466 is still the newest as of now

Sign in to join the discussion.