From 622d30f730cbf22a0479c190557bef18f5412ed1 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 17 Mar 2019 13:08:25 +1100 Subject: [PATCH] Fix dangerously threaded beacons By: md_5 --- paper-server/nms-patches/BlockBeacon.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 paper-server/nms-patches/BlockBeacon.patch diff --git a/paper-server/nms-patches/BlockBeacon.patch b/paper-server/nms-patches/BlockBeacon.patch new file mode 100644 index 0000000000..8f58b71dc2 --- /dev/null +++ b/paper-server/nms-patches/BlockBeacon.patch @@ -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 + } + }