Skip to content

Commit

Permalink
Update MixinBackgroundRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
valoeghese authored Aug 22, 2020
1 parent 3a30cca commit 8e46ade
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

import io.github.fabriccommunity.events.render.BackgroundRenderCallback;
import io.github.fabriccommunity.events.render.BackgroundRenderEvents;
import net.minecraft.client.render.BackgroundRenderer;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.world.biome.Biome;
Expand All @@ -17,6 +17,6 @@ public class MixinBackgroundRenderer {
method = "method_24873(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/world/biome/source/BiomeAccess;FIII)Lnet/minecraft/util/math/Vec3d;"
)
private static int modifyFogColour(Biome self, ClientWorld world, BiomeAccess biomeAccess, float sunHeight, int genX, int genY, int genZ) {
return BackgroundRenderCallback.BIOME_FOG_COLOR.invoker().modifyFogColor(world, self, genX, genY, genZ, self.getFogColor());
return BackgroundRenderEvents.BIOME_FOG_COLOR.invoker().modifyFogColor(world, self, genX, genY, genZ, self.getFogColor());
}
}

0 comments on commit 8e46ade

Please sign in to comment.