Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jun 10, 2023
1 parent c6ca423 commit 8b425f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20-rc1
yarn_mappings=1.20-rc1+build.2
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
# Mod Properties
mod_version=1.2.0+1.20
Expand All @@ -13,5 +13,5 @@ archives_base_name=FogLooksGoodNow
# check this on https://modmuss50.me/fabric.html
fabric_version=0.83.0+1.20
# TODO: Bump these deps for 1.20
owo_version=0.10.3+1.19.3
mod_menu_version=5.1.0-beta.4
owo_version=0.11.0+1.20
mod_menu_version=7.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@Mixin(WorldRenderer.class)
public class LevelRendererMixin {
@Inject(method = "<init>(Lnet/minecraft/client/Minecraft;Lnet/minecraft/client/renderer/entity/EntityRenderDispatcher;Lnet/minecraft/client/renderer/blockentity/BlockEntityRenderDispatcher;Lnet/minecraft/client/renderer/RenderBuffers;)V", at = @At("TAIL"))
@Inject(method = "<init>", at = @At("TAIL"))
private void init(CallbackInfo info) {
FogManager.densityManager = new FogManager();
FLG.LOGGER.info("Initialized Density Manager");
Expand All @@ -27,7 +27,7 @@ private void close(CallbackInfo info) {
FogManager.densityManager = null;
}

@Inject(method = "renderSky", at = @At("TAIL"))
@Inject(method = "renderSky(Lnet/minecraft/client/util/math/MatrixStack;Lorg/joml/Matrix4f;FLnet/minecraft/client/render/Camera;ZLjava/lang/Runnable;)V", at = @At("TAIL"))
public void renderSky(MatrixStack poseStack, Matrix4f projectionMatrix, float partialTick, Camera camera, boolean isFoggy, Runnable setupFog, CallbackInfo ci) {
MinecraftClient mc = MinecraftClient.getInstance();
FoggySkyRenderer.renderSky(mc.world, partialTick, poseStack, camera, projectionMatrix, isFoggy, setupFog);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"depends": {
"fabricloader": ">=0.14.14",
"fabric": "*",
"minecraft": ">=1.19.3 <1.20"
"minecraft": ">=1.20"
}
}

0 comments on commit 8b425f1

Please sign in to comment.