[BUG] villager.type
Closed this issue · 2 comments
YoungSoulluoS commented
Is there an existing issue for this?
- I have searched the existing issues
Expected Behavior
Work 8)
Actual Behavior
Not work 8)
Steps To Reproduce
Loader and its version
Fabric Loader 0.15.7 1.20.2 ( and 4)
OptiGUI version
OptiFUI 2.3.0-alpha.2
Behavior difference
- Behavior is different from OptiGUI documentation
- Behavior is different from OptiFine
- Behavior is different from expected (or straight up doesn't work)
Anything else
Looks like villager.type isn't filtering properly.
villaget.professions works great.
Thank you for Good Mod!
YoungSoulluoS commented
opekope2 commented
Uh well
If AbstractListSelector<T>.transformInteraction
returned T?
instead of Any?
, this would be a compilation error.
But yes, the problem is that it loads an Identifier
, which will never be equal to a VillagerType