Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
Fix dangerously threaded beacons
Dieser Commit ist enthalten in:
Ursprung
217a293d3e
Commit
d3ed151625
19
nms-patches/BlockBeacon.patch
Normale Datei
19
nms-patches/BlockBeacon.patch
Normale Datei
@ -0,0 +1,19 @@
|
|||||||
|
--- a/net/minecraft/server/BlockBeacon.java
|
||||||
|
+++ b/net/minecraft/server/BlockBeacon.java
|
||||||
|
@@ -49,7 +49,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void a(World world, BlockPosition blockposition) {
|
||||||
|
- HttpUtilities.a.submit(() -> {
|
||||||
|
+ // HttpUtilities.a.submit(() -> { // CraftBukkit - dangerously threaded
|
||||||
|
Chunk chunk = world.getChunkAtWorldCoords(blockposition);
|
||||||
|
|
||||||
|
for (int i = blockposition.getY() - 1; i >= 0; --i) {
|
||||||
|
@@ -74,6 +74,6 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- });
|
||||||
|
+ // }); // CraftBukkit
|
||||||
|
}
|
||||||
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren