Fix dynamic resources mixin on NeoForge

This commit is contained in:
embeddedt 2024-04-25 19:39:15 -04:00
parent 3f688148d0
commit 89592a2c42
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -26,7 +26,7 @@ public class ForgeHooksClientMixin {
* Generate a more realistic keySet that contains every item and block model location, to help with mod compat.
*/
@Redirect(method = "onModifyBakingResult", at = @At(value = "INVOKE", target = "Lnet/neoforged/fml/ModLoader;postEvent(Lnet/neoforged/bus/api/Event;)V"), remap = false)
private static void postNamespacedKeySetEvent(ModLoader loader, Event event) {
private static void postNamespacedKeySetEvent(Event event) {
if(!ModLoader.isLoadingStateValid())
return;
ModelEvent.ModifyBakingResult bakeEvent = ((ModelEvent.ModifyBakingResult)event);