diff --git a/gradle.properties b/gradle.properties index d6e6a2db..32114562 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,9 +10,9 @@ maven_group = juliand665 archives_name = dynamic-fps # File naming version -minecraft_version = 1.21.2-alpha.24w33a +minecraft_version = 1.21.2 # Version for publishing -minecraft_version_min = 24w33a -minecraft_version_max = 24w34a +minecraft_version_min = 1.21.2 +minecraft_version_max = 1.21.2 enabled_platforms=fabric,quilt diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2d65ef45..affa694c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -minecraft = "24w33a" +minecraft = "1.21.2-rc1" # Platform libraries diff --git a/platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java b/platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java index 71b3d9a9..8a1afbc9 100644 --- a/platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java +++ b/platforms/common/src/main/java/dynamic_fps/impl/DynamicFPSMod.java @@ -263,7 +263,7 @@ private static void checkForStateChanges() { checkForStateChanges0(); } else { // Schedule check for the beginning of the next frame - minecraft.tell(DynamicFPSMod::checkForStateChanges0); + minecraft.schedule(DynamicFPSMod::checkForStateChanges0); } } diff --git a/platforms/common/src/main/java/dynamic_fps/impl/compat/GLFW.java b/platforms/common/src/main/java/dynamic_fps/impl/compat/GLFW.java index 67f1f5e7..0c3bb626 100644 --- a/platforms/common/src/main/java/dynamic_fps/impl/compat/GLFW.java +++ b/platforms/common/src/main/java/dynamic_fps/impl/compat/GLFW.java @@ -31,7 +31,7 @@ public static void applyWorkaround() { // Agrees that the window is focused. The mod is // A little too fast for this, so we schedule it // For the next client tick (before next frame). - minecraft.tell(minecraft.mouseHandler::grabMouse); + minecraft.schedule(minecraft.mouseHandler::grabMouse); } } diff --git a/platforms/common/src/main/java/dynamic_fps/impl/feature/battery/BatteryTracker.java b/platforms/common/src/main/java/dynamic_fps/impl/feature/battery/BatteryTracker.java index b4db3334..52d7c40a 100644 --- a/platforms/common/src/main/java/dynamic_fps/impl/feature/battery/BatteryTracker.java +++ b/platforms/common/src/main/java/dynamic_fps/impl/feature/battery/BatteryTracker.java @@ -103,7 +103,7 @@ private static void updateState() { changed = true; int current = charge; - minecraft.tell(() -> DynamicFPSMod.onBatteryChargeChanged(current, newCharge)); + minecraft.schedule(() -> DynamicFPSMod.onBatteryChargeChanged(current, newCharge)); } if (readInitialData && status != newStatus) { @@ -111,7 +111,7 @@ private static void updateState() { State current = status; State updated = newStatus; - minecraft.tell(() -> DynamicFPSMod.onBatteryStatusChanged(current, updated)); + minecraft.schedule(() -> DynamicFPSMod.onBatteryStatusChanged(current, updated)); } charge = newCharge;