2018-09-01 06:56:57 +08:00
|
|
|
From 3dad1401f1bc22c4d037e64161992b62221a480f Mon Sep 17 00:00:00 2001
|
2018-07-18 08:08:13 +08: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
|
2018-09-01 06:56:57 +08:00
|
|
|
index 7148ea3692..6d4e82b404 100644
|
2018-07-18 08:08:13 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockBeacon.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockBeacon.java
|
2018-09-01 06:56:57 +08:00
|
|
|
@@ -46,7 +46,7 @@ public class BlockBeacon extends BlockTileEntity {
|
2018-07-18 08:08:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void a(World world, BlockPosition blockposition) {
|
|
|
|
- HttpUtilities.a.submit(() -> {
|
|
|
|
+ //HttpUtilities.a.submit(() -> { // Paper
|
|
|
|
Chunk chunk = world.getChunkAtWorldCoords(blockposition);
|
|
|
|
|
2018-09-01 06:56:57 +08:00
|
|
|
for(int i = blockposition.getY() - 1; i >= 0; --i) {
|
|
|
|
@@ -67,7 +67,6 @@ public class BlockBeacon extends BlockTileEntity {
|
2018-07-18 08:08:13 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
+ // }); // Paper
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2018-07-23 16:39:55 +08:00
|
|
|
2.18.0
|
2018-07-18 08:08:13 +08:00
|
|
|
|