Skip to content

Commit ec99687

Browse files
committed
Fix Canary compat
1 parent 3bf2c86 commit ec99687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)