opekope2 / OptiGUI

Blazing fast custom GUI textures on Fabric and Quilt with built-in OptiFine custom GUI resource pack support
https://opekope2.dev/OptiGUI/
MIT License
22 stars 4 forks source link

[BUG] villager.type #89

Closed YoungSoulluoS closed 3 months ago

YoungSoulluoS commented 3 months ago

Is there an existing issue for this?

Expected Behavior

Work 8)

Actual Behavior

Not work 8)

Steps To Reproduce

image

Loader and its version

Fabric Loader 0.15.7 1.20.2 ( and 4)

OptiGUI version

OptiFUI 2.3.0-alpha.2

Behavior difference

Anything else

Looks like villager.type isn't filtering properly. villaget.professions works great.

Thank you for Good Mod!

YoungSoulluoS commented 3 months ago

Looks like the problem here, the filter involves Type = plains and compares to Identifier = minecraft:plains Because Type not containt namespace image

image

opekope2 commented 3 months ago

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