2019-01-01 04:15:55 +01:00
|
|
|
From 777d98b4a8650fc1cbb0046b63c76cf2d81615d8 Mon Sep 17 00:00:00 2001
|
2018-07-18 02:08:13 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 5 Feb 2017 19:17:28 -0500
|
|
|
|
Subject: [PATCH] Shame on you Mojang
|
|
|
|
|
|
|
|
Someone wrote some horrible code that throws a world accessing task
|
|
|
|
onto the HTTP DOWNLOADER Thread Pool, for an activity that is not even
|
|
|
|
heavy enough to warrant async operation.
|
|
|
|
|
|
|
|
This then triggers async chunk loads!
|
|
|
|
|
|
|
|
What in the hell were you thinking?
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockBeacon.java b/src/main/java/net/minecraft/server/BlockBeacon.java
|
2019-01-01 04:15:55 +01:00
|
|
|
index fb567f34c..e45ad95fb 100644
|
2018-07-18 02:08:13 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockBeacon.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockBeacon.java
|
2019-01-01 04:15:55 +01:00
|
|
|
@@ -49,7 +49,7 @@ public class BlockBeacon extends BlockTileEntity {
|
2018-07-18 02:08:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void a(World world, BlockPosition blockposition) {
|
|
|
|
- HttpUtilities.a.submit(() -> {
|
|
|
|
+ //HttpUtilities.a.submit(() -> { // Paper
|
|
|
|
Chunk chunk = world.getChunkAtWorldCoords(blockposition);
|
|
|
|
|
2019-01-01 04:15:55 +01:00
|
|
|
for (int i = blockposition.getY() - 1; i >= 0; --i) {
|
|
|
|
@@ -73,7 +73,6 @@ public class BlockBeacon extends BlockTileEntity {
|
2018-07-18 02:08:13 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
+ // }); // Paper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2019-01-01 04:15:55 +01:00
|
|
|
2.20.1
|
2018-07-18 02:08:13 +02:00
|
|
|
|