mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
Fix dangerously threaded beacons
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4081927fd4
commit
622d30f730
19
paper-server/nms-patches/BlockBeacon.patch
Normal file
19
paper-server/nms-patches/BlockBeacon.patch
Normal file
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user