-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly map simulation distance to vanilla map
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
patches/main/0022-fix-properly-map-simulation-distance-to-vanilla-map.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: ishland <[email protected]> | ||
Date: Mon, 10 Feb 2025 13:55:33 +0800 | ||
Subject: [PATCH] fix: properly map simulation distance to vanilla map | ||
|
||
|
||
diff --git a/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/mixin/MixinChunkTicketManager.java b/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/mixin/MixinChunkTicketManager.java | ||
index 37732ee8..b5da3682 100644 | ||
--- a/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/mixin/MixinChunkTicketManager.java | ||
+++ b/c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/mixin/MixinChunkTicketManager.java | ||
@@ -64,13 +64,9 @@ public class MixinChunkTicketManager implements ChunkTicketManagerExtension { | ||
this.noTickSystem.tick(); | ||
} | ||
|
||
- /** | ||
- * @author ishland | ||
- * @reason remap setSimulationDistance to the normal one | ||
- */ | ||
- @Overwrite | ||
- public void setSimulationDistance(int i) { | ||
- this.nearbyChunkTicketUpdater.setWatchDistance(i); | ||
+ @Inject(method = "setSimulationDistance", at = @At("HEAD")) | ||
+ public void mapSimulationDistance(int simulationDistance, CallbackInfo ci) { | ||
+ this.nearbyChunkTicketUpdater.setWatchDistance(simulationDistance); | ||
} | ||
|
||
/** |