Fabric API

Fabric API

106M Downloads

UseItemCallback crashes when a custom result is set

Pyrofab opened this issue ยท 1 comments

commented

Mixins to ServerPlayerInteractionManager and ClientPlayerInteractionManager attempt to set a TypedActionResult as the return value of methods that return an ActionResult.
Mixin does not report that error, but the game crashes with a ClassCastException whenever a mod registers a callback that returns a result other than PASS.
https://gist.github.com/Pyrofab/1cf5149616504ddb91ab3fc854dd4bbc

commented

Thanks, fixed by #484