Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
d089acb3bd
ForgeFlower is better than Spigots FernFlower at decompiling the source. However, in order to maintain the CraftBukkit patches, we must keep using spigots for the primary. However, for any file that we import on top of Spigots imported files there is nothing stopping us from using better decompiled files. So these changes will use ForgeFlower to maintain a better set of decomped files, so anything we add on top of Paper can start off in a better spot.
39 Zeilen
1.2 KiB
Diff
39 Zeilen
1.2 KiB
Diff
From 3dad1401f1bc22c4d037e64161992b62221a480f Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 7148ea3692..6d4e82b404 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockBeacon.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockBeacon.java
|
|
@@ -46,7 +46,7 @@ public class BlockBeacon extends BlockTileEntity {
|
|
}
|
|
|
|
public static void a(World world, BlockPosition blockposition) {
|
|
- HttpUtilities.a.submit(() -> {
|
|
+ //HttpUtilities.a.submit(() -> { // Paper
|
|
Chunk chunk = world.getChunkAtWorldCoords(blockposition);
|
|
|
|
for(int i = blockposition.getY() - 1; i >= 0; --i) {
|
|
@@ -67,7 +67,6 @@ public class BlockBeacon extends BlockTileEntity {
|
|
});
|
|
}
|
|
}
|
|
-
|
|
- });
|
|
+ // }); // Paper
|
|
}
|
|
}
|
|
--
|
|
2.18.0
|
|
|