fix remapping

This commit is contained in:
IThundxr 2024-09-14 09:59:11 -04:00
parent 3176f1d0f5
commit 93650111b1
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6

View File

@ -32,12 +32,12 @@ abstract class MinecraftMixin {
return arg0;
}
@Inject(method = "lambda$new$8", at = @At("HEAD"))
@Inject(method = "lambda$new$8", at = @At("HEAD"), remap = false)
private void flywheel$onEndInitialResourceReload(@Coerce Object gameLoadCookie, Optional<Throwable> error, CallbackInfo ci) {
NeoForge.EVENT_BUS.post(new EndClientResourceReloadEvent((Minecraft) (Object) this, resourceManager, true, error));
}
@Inject(method = "lambda$reloadResourcePacks$21", at = @At("HEAD"))
@Inject(method = "lambda$reloadResourcePacks$21", at = @At("HEAD"), remap = false)
private void flywheel$onEndManualResourceReload(boolean recovery, @Coerce Object gameLoadCookie, CompletableFuture<Void> completablefuture, Optional<Throwable> error, CallbackInfo ci) {
NeoForge.EVENT_BUS.post(new EndClientResourceReloadEvent((Minecraft) (Object) this, resourceManager, false, error));
}