
[1.21.8 NeoForge] Generic issues with module API
TelepathicGrunt opened this issue ยท 0 comments
Issue description
I have a field setup like this:
final DeferredHolder<ModuleData<?>, ModuleData<?>> JETPACK_UNIT = DeferredHolder.create(MekanismAPI.MODULE_REGISTRY_NAME, ResourceLocation.fromNamespaceAndPath("mekanism", "jetpack_unit"));
And then at runtime, I try to get the module like so using getModule:
IModule<?> jetpackUnit = IModuleHelper.INSTANCE.getModule(chestplate, JETPACK_UNIT);

However, I am getting an issue with the generics refusing to accept my input
Steps to reproduce
see above
Minecraft version
1.21.8 (Latest)
NeoForge version
Latest neo
Mekanism version
Current Dev Branch (Manually Compiled, specify git commit hash)
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
No response