NucleoidMC / Server-Translations

MIT License
42 stars 20 forks source link

DataPackContentsMixin breaks every other modded resource reload listener #30

Closed LemmaEOF closed 2 years ago

LemmaEOF commented 2 years ago

The DataPackContentsMixin added in 1.18.2 unconditionally cancels the method it's injecting into, causing every other mod who uses a resource reload listener to never have theirs registered. This mixin should not be used, as Fabric already includes a hook for registering reload listeners. Please use ResourceLoader.get(ResourceType.SERVER_DATA).registerReloader(ServerTranslations.INSTANCE); instead, using the transitive access wideners module in Fabric API.