Skip to content

Commit

Permalink
Resolve some weather issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Sep 22, 2023
1 parent c930cbb commit 28289b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/net/coderbot/iris/mixin/MixinLevelRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class MixinLevelRenderer {
pipeline.setPhase(WorldRenderingPhase.CLOUDS);
}

@Inject(method = RENDER_CLOUDS, at = @At(value = "RETURN"))
@Inject(method = RENDER_CLOUDS, at = @At("RETURN"))
private void iris$endClouds(PoseStack poseStack, Matrix4f projection, float tickDelta, double x, double y, double z, CallbackInfo ci) {
pipeline.setPhase(WorldRenderingPhase.NONE);
}
Expand All @@ -174,8 +174,8 @@ public class MixinLevelRenderer {
pipeline.setPhase(WorldRenderingPhase.NONE);
}

@Inject(method = "renderLevel", at = @At(value = "INVOKE", target = RENDER_WEATHER))
private void iris$beginWeather(PoseStack poseStack, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightTexture lightTexture, Matrix4f projection, CallbackInfo callback) {
@Inject(method = RENDER_WEATHER, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/DimensionSpecialEffects;renderSnowAndRain(Lnet/minecraft/client/multiplayer/ClientLevel;IFLnet/minecraft/client/renderer/LightTexture;DDD)Z", shift = At.Shift.AFTER))
private void iris$beginWeather(LightTexture arg, float tickDelta, double x, double y, double z, CallbackInfo callback) {
pipeline.setPhase(WorldRenderingPhase.RAIN_SNOW);
}

Expand All @@ -188,8 +188,8 @@ public class MixinLevelRenderer {
return depthMaskEnabled;
}

@Inject(method = "renderLevel", at = @At(value = "INVOKE", target = RENDER_WEATHER, shift = At.Shift.AFTER))
private void iris$endWeather(PoseStack poseStack, float tickDelta, long limitTime, boolean renderBlockOutline, Camera camera, GameRenderer gameRenderer, LightTexture lightTexture, Matrix4f projection, CallbackInfo callback) {
@Inject(method = RENDER_WEATHER, at = @At("RETURN"))
private void iris$endWeather(LightTexture arg, float tickDelta, double x, double y, double z, CallbackInfo callback) {
pipeline.setPhase(WorldRenderingPhase.NONE);
}

Expand Down

0 comments on commit 28289b4

Please sign in to comment.