Closed whatsubon closed 1 year ago
After looking at the source code, I was quickly able to identify the problem. Create uses a fake ponder world whenever you're pondering. The PonderWorld
class does extend Level
, so it can be used as a parameter for the get
method in LockManager
but it isn't an instance of ClientLevel
or ServerLevel
. When the method is called with a create PonderWorld
parameter, it tries to cast it to ClientLevel
or ServerLevel
(depending on whether the level is client side), but since Create's PonderWorld
isn't an instance of it, it throws a ClassCastException
. This should be pretty simple to fix, just either add a check to make sure it's an instance of ClientLevel
or ServerLevel
, or catch the exception whenever the method is called.
What version are you seeing the problem on?
1.18.x
Describe the issue
latest.log