diff options
Diffstat (limited to 'Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch')
-rw-r--r-- | Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch b/Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch index c43c2cc5d2..f9a9f2f663 100644 --- a/Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch +++ b/Spigot-Server-Patches/0063-Optimize-Spigot-s-Anti-X-Ray.patch @@ -1,11 +1,11 @@ -From 90cfceb6acf7723815e95fee4f9f6a24277bae50 Mon Sep 17 00:00:00 2001 +From 4222b417aed27fedcce9ca54c96f63fa17e504bb Mon Sep 17 00:00:00 2001 From: Iceee <[email protected]> Date: Thu, 23 Apr 2015 17:26:21 -0400 Subject: [PATCH] Optimize Spigot's Anti X-Ray diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java -index 06c7057..fb16a8a 100644 +index 06c70578..fb16a8ad 100644 --- a/src/main/java/net/minecraft/server/WorldServer.java +++ b/src/main/java/net/minecraft/server/WorldServer.java @@ -252,6 +252,7 @@ public class WorldServer extends World implements IAsyncTaskHandler { @@ -17,7 +17,7 @@ index 06c7057..fb16a8a 100644 timings.doChunkMap.startTiming(); // Spigot this.manager.flush(); diff --git a/src/main/java/org/spigotmc/AntiXray.java b/src/main/java/org/spigotmc/AntiXray.java -index 7221b50..5466a61 100644 +index 7221b507..5466a61c 100644 --- a/src/main/java/org/spigotmc/AntiXray.java +++ b/src/main/java/org/spigotmc/AntiXray.java @@ -8,6 +8,11 @@ import net.minecraft.server.Blocks; @@ -43,10 +43,11 @@ index 7221b50..5466a61 100644 public AntiXray(SpigotWorldConfig config) { -@@ -44,6 +53,25 @@ public class AntiXray +@@ -43,6 +52,25 @@ public class AntiXray + replacementOres = blocks.toArray(); } - /** ++ /** + * PaperSpigot - Flush queued block updates for world. + */ + public void flushUpdates(World world) @@ -65,10 +66,9 @@ index 7221b50..5466a61 100644 + } + } + -+ /** + /** * Starts the timings handler, then updates all blocks within the set radius * of the given coordinate, revealing them if they are hidden ores. - */ @@ -51,6 +79,13 @@ public class AntiXray { if ( world.spigotConfig.antiXray ) @@ -84,5 +84,5 @@ index 7221b50..5466a61 100644 updateNearbyBlocks( world, position, 2, false ); // 2 is the radius, we shouldn't change it as that would make it exponentially slower update.stopTiming(); -- -2.6.0 +2.34.0 |