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