From 11a8cda1df0d234f930aad4b14c8d9848941534c Mon Sep 17 00:00:00 2001 From: PinkGoosik Date: Sat, 23 Sep 2023 00:13:42 +0500 Subject: [PATCH] 1.20.2 --- buildscript/buildscript.properties | 20 +++++++++---------- .../mixin/common/ServerWorldMixin.java | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/buildscript/buildscript.properties b/buildscript/buildscript.properties index e35db9a..5d54dca 100644 --- a/buildscript/buildscript.properties +++ b/buildscript/buildscript.properties @@ -1,17 +1,17 @@ # Mod Properties name = winterly -modVersion = 0.9.3+1.20 +modVersion = 0.9.4+1.20.2 javaVersion = 17 # Dependencies -minecraftVersion = 1.20.1 -yarnMappings = 1.20.1+build.10 -fabricLoader = 0.14.21 +minecraftVersion = 1.20.2 +yarnMappings = 1.20.2+build.1 +fabricLoader = 0.14.22 vineflower = 1.9.3 -fabricApi = 0.86.1+1.20.1 -clothConfig = 11.1.106 -trinkets = 3.7.1 -cardinalComponents = 5.2.1 -modmenu = 7.2.1 -owo-lib = 0.11.1+1.20 +fabricApi = 0.89.1+1.20.2 +clothConfig = 12.0.109 +trinkets = 3.8.0 +cardinalComponents = 5.3.0 +modmenu = 8.0.0-beta.2 +owo-lib = 0.11.1+1.20 diff --git a/src/main/java/winterly/mixin/common/ServerWorldMixin.java b/src/main/java/winterly/mixin/common/ServerWorldMixin.java index 2f27e8c..2a5ae28 100644 --- a/src/main/java/winterly/mixin/common/ServerWorldMixin.java +++ b/src/main/java/winterly/mixin/common/ServerWorldMixin.java @@ -20,7 +20,7 @@ @Mixin(ServerWorld.class) public abstract class ServerWorldMixin { - @Redirect(method = "tickChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/biome/Biome;canSetSnow(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z")) + @Redirect(method = "tickIceAndSnow", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/biome/Biome;canSetSnow(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z")) boolean canSetSnow(Biome biome, WorldView view, BlockPos pos) { if(!biome.doesNotSnow(pos) && (pos.getY() >= view.getBottomY() && pos.getY() < view.getTopY() && view.getLightLevel(LightType.BLOCK, pos) < 10)) {