Skip to content

Commit 4b560c7

Browse files
committed
Merge 1.19.4 into 1.20
2 parents 501d24d + ecb3863 commit 4b560c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forge/src/main/java/org/embeddedt/modernfix/forge/mixin/bugfix/chunk_deadlock/ServerChunkCache_CurrentLoadingMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.lang.invoke.MethodHandles;
1919
import java.lang.reflect.Field;
2020

21-
@Mixin(ServerChunkCache.class)
21+
@Mixin(value = ServerChunkCache.class, priority = 1100)
2222
public abstract class ServerChunkCache_CurrentLoadingMixin {
2323
@Shadow @Nullable protected abstract ChunkHolder getVisibleChunkIfPresent(long l);
2424

@@ -38,7 +38,7 @@ public abstract class ServerChunkCache_CurrentLoadingMixin {
3838
* Check the currentlyLoading field before going to the future chain, as was done in 1.16. In 1.18 upstream seems
3939
* to have only applied this to getChunkNow().
4040
*/
41-
@Inject(method = "getChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/level/ServerChunkCache;getChunkFutureMainThread(IILnet/minecraft/world/level/chunk/ChunkStatus;Z)Ljava/util/concurrent/CompletableFuture;"), cancellable = true)
41+
@Inject(method = "getChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/level/ServerChunkCache;getChunkFutureMainThread(IILnet/minecraft/world/level/chunk/ChunkStatus;Z)Ljava/util/concurrent/CompletableFuture;"), cancellable = true, require = 0)
4242
private void checkCurrentlyLoading(int chunkX, int chunkZ, ChunkStatus requiredStatus, boolean load, CallbackInfoReturnable<ChunkAccess> cir) {
4343
long i = ChunkPos.asLong(chunkX, chunkZ);
4444
ChunkHolder holder = this.getVisibleChunkIfPresent(i);

0 commit comments

Comments
 (0)