Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 03:20:07 +01:00
Fix async calls to getChunkAtIfLoadedImmediately
Dieser Commit ist enthalten in:
Ursprung
16909a3637
Commit
ec405a6bea
@ -1,4 +1,4 @@
|
||||
From 8dbe084873df655de066118b90ebe479bcf299cd Mon Sep 17 00:00:00 2001
|
||||
From 4f85c289931d39b1ab2d7f32021ad870ecef0000 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Mon, 28 Mar 2016 20:55:47 -0400
|
||||
Subject: [PATCH] MC Utils
|
||||
@ -182,7 +182,7 @@ index 857b2f8868..bbf136614c 100644
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
index dcf2d38df5..ea73e4baba 100644
|
||||
index dcf2d38df5..600217427b 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
@@ -66,6 +66,38 @@ public class ChunkProviderServer extends IChunkProvider {
|
||||
@ -196,7 +196,7 @@ index dcf2d38df5..ea73e4baba 100644
|
||||
+ if (Thread.currentThread() != this.serverThread) {
|
||||
+ return CompletableFuture.supplyAsync(() -> {
|
||||
+ return this.getChunkAtIfLoadedImmediately(x, z);
|
||||
+ }).join();
|
||||
+ }, this.serverThreadQueue).join();
|
||||
+ }
|
||||
+
|
||||
+ long k = ChunkCoordIntPair.pair(x, z);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren