Skip to content

Commit

Permalink
Mixin Fixin'
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jul 15, 2024
1 parent dfbd451 commit 1cce5da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ abstract class LevelRendererMixin {
flywheel$dispatch(RenderStage.AFTER_TRANSLUCENT_TERRAIN);
}

@Group(name = "onStage$afterParticles", min = 2, max = 2)
@Group(name = "onStage$afterParticles", min = 2, max = 3)
@Inject(method = "renderLevel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/particle/ParticleEngine;render(Lnet/minecraft/client/renderer/LightTexture;Lnet/minecraft/client/Camera;F)V", shift = Shift.AFTER))
private void flywheel$onStage$afterParticles$fabric(CallbackInfo ci) {
flywheel$dispatch(RenderStage.AFTER_PARTICLES);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ abstract class MinecraftMixin {
return arg0;
}

@Inject(method = "lambda$new$7", at = @At("HEAD"))
@Inject(method = "lambda$new$8", at = @At("HEAD"))
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$39", at = @At("HEAD"))
@Inject(method = "lambda$reloadResourcePacks$22", at = @At("HEAD"))
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));
}
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ mod_homepage = https://github.com/Jozufozu/Flywheel

# Mod dependency declarations
minecraft_semver_version_range = >=1.21 <1.21.1
minecraft_maven_version_range = [1.21,1.21.0)
minecraft_maven_version_range = [1.21,1.21.1)
fabric_api_version_range = >=0.100.6
neoforge_version_range = [21.0.79-beta,)
neoforge_version_range = [21.0.95-beta,)

# General build dependency versions
java_version = 21
Expand All @@ -25,7 +25,7 @@ parchment_version = 2024.07.07

# Minecraft build dependency versions
minecraft_version = 1.21
neoforge_version = 21.0.79-beta
neoforge_version = 21.0.95-beta
fabric_loader_version = 0.15.11
fabric_api_version = 0.100.6+1.21

Expand Down

0 comments on commit 1cce5da

Please sign in to comment.