Skip to content

Commit

Permalink
Minecraft 1.21.2-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Oct 18, 2024
1 parent 9e1858c commit 6ea1320
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
minecraft = "24w33a"
minecraft = "1.21.2-rc1"

# Platform libraries

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ 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) {
changed = true;

State current = status;
State updated = newStatus;
minecraft.tell(() -> DynamicFPSMod.onBatteryStatusChanged(current, updated));
minecraft.schedule(() -> DynamicFPSMod.onBatteryStatusChanged(current, updated));
}

charge = newCharge;
Expand Down

0 comments on commit 6ea1320

Please sign in to comment.