From d2a00b0e10310390e93ea6ee26c51255d3160289 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:45:22 -0400 Subject: [PATCH] Readd Petal and Suki Patches --- .../0006-Suki-Patches.patch} | 8 +-- ...ns.patch => 0007-C2ME-optimizations.patch} | 0 ...08-Use-our-logo-instead-of-Purpur-s.patch} | 0 ... => 0009-Smarter-statistics-ticking.patch} | 0 ...orts.patch => 0010-Smooth-Teleports.patch} | 0 ...heck.patch => 0011-Fast-speed-check.patch} | 0 ...ch => 0012-PaperPR-Optimize-VarInts.patch} | 0 ...s.patch => 0013-Options-of-warnings.patch} | 6 +- ...4-Add-an-option-for-tripwire-duping.patch} | 0 ...n-for-spigot-item-merging-mechanism.patch} | 0 ...file.patch => 0016-Global-Eula-file.patch} | 0 ...ork-entities-or-the-server-may-be-l.patch} | 0 ...le-arrow-despawn-counter-by-default.patch} | 0 ...-Use-a-faster-random-implementation.patch} | 0 ...20-Don-t-create-new-random-instance.patch} | 0 ...021-Skip-entity-move-if-no-movement.patch} | 0 ....patch => 0022-LazyDFU-optimization.patch} | 0 ...> 0023-Revert-purpur-spark-profiler.patch} | 4 +- ...h => 0024-Optimized-getBiome-method.patch} | 0 ...=> 0025-Use-optimized-RecipeManager.patch} | 0 ...> 0026-Revert-purpur-Remove-Timings.patch} | 60 +++++++++---------- .../0027-Async-path-processing.patch} | 0 .../0028-Multithreaded-tracker.patch} | 9 +-- ...duce-work-done-by-game-event-system.patch} | 4 +- .../0030-Reduce-sensor-work.patch} | 2 +- 25 files changed, 47 insertions(+), 46 deletions(-) rename patches/{removed/0005-Suki-Patches.patch => server/0006-Suki-Patches.patch} (99%) rename patches/server/{0006-C2ME-optimizations.patch => 0007-C2ME-optimizations.patch} (100%) rename patches/server/{0007-Use-our-logo-instead-of-Purpur-s.patch => 0008-Use-our-logo-instead-of-Purpur-s.patch} (100%) rename patches/server/{0008-Smarter-statistics-ticking.patch => 0009-Smarter-statistics-ticking.patch} (100%) rename patches/server/{0009-Smooth-Teleports.patch => 0010-Smooth-Teleports.patch} (100%) rename patches/server/{0010-Fast-speed-check.patch => 0011-Fast-speed-check.patch} (100%) rename patches/server/{0011-PaperPR-Optimize-VarInts.patch => 0012-PaperPR-Optimize-VarInts.patch} (100%) rename patches/server/{0012-Options-of-warnings.patch => 0013-Options-of-warnings.patch} (95%) rename patches/server/{0013-Add-an-option-for-tripwire-duping.patch => 0014-Add-an-option-for-tripwire-duping.patch} (100%) rename patches/server/{0014-Add-an-option-for-spigot-item-merging-mechanism.patch => 0015-Add-an-option-for-spigot-item-merging-mechanism.patch} (100%) rename patches/server/{0015-Global-Eula-file.patch => 0016-Global-Eula-file.patch} (100%) rename patches/server/{0016-Do-not-save-firework-entities-or-the-server-may-be-l.patch => 0017-Do-not-save-firework-entities-or-the-server-may-be-l.patch} (100%) rename patches/server/{0017-Disable-arrow-despawn-counter-by-default.patch => 0018-Disable-arrow-despawn-counter-by-default.patch} (100%) rename patches/server/{0018-Use-a-faster-random-implementation.patch => 0019-Use-a-faster-random-implementation.patch} (100%) rename patches/server/{0019-Don-t-create-new-random-instance.patch => 0020-Don-t-create-new-random-instance.patch} (100%) rename patches/server/{0020-Skip-entity-move-if-no-movement.patch => 0021-Skip-entity-move-if-no-movement.patch} (100%) rename patches/server/{0021-LazyDFU-optimization.patch => 0022-LazyDFU-optimization.patch} (100%) rename patches/server/{0022-Revert-purpur-spark-profiler.patch => 0023-Revert-purpur-spark-profiler.patch} (94%) rename patches/server/{0023-Optimized-getBiome-method.patch => 0024-Optimized-getBiome-method.patch} (100%) rename patches/server/{0024-Use-optimized-RecipeManager.patch => 0025-Use-optimized-RecipeManager.patch} (100%) rename patches/server/{0025-Revert-purpur-Remove-Timings.patch => 0026-Revert-purpur-Remove-Timings.patch} (97%) rename patches/{removed/0003-Async-path-processing.patch => server/0027-Async-path-processing.patch} (100%) rename patches/{removed/0004-Multithreaded-tracker.patch => server/0028-Multithreaded-tracker.patch} (98%) rename patches/{removed/0006-Reduce-work-done-by-game-event-system.patch => server/0029-Reduce-work-done-by-game-event-system.patch} (98%) rename patches/{removed/0008-Reduce-sensor-work.patch => server/0030-Reduce-sensor-work.patch} (97%) diff --git a/patches/removed/0005-Suki-Patches.patch b/patches/server/0006-Suki-Patches.patch similarity index 99% rename from patches/removed/0005-Suki-Patches.patch rename to patches/server/0006-Suki-Patches.patch index 9cebb93..7494549 100644 --- a/patches/removed/0005-Suki-Patches.patch +++ b/patches/server/0006-Suki-Patches.patch @@ -340,7 +340,7 @@ index 5962f7a2b185d7d54a0f9e341a4fdf6e6f1c1ec5..8c80520396bc7e34bac25354c1fcdb38 worldUpgrader.convert(); } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 13c9cddf7ac0af16676050e3bcdf22b7475a0387..74d361e7e96708653378b27d5c81a11c46033bc2 100644 +index a444c8c57a2ab16eba45b0379841a69ff60a5586..ede16b015b9dde07a7346e0bffde53082145798b 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -294,6 +294,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop resourcekey, LevelStem worlddimension, ChunkProgressListener worldloadlistener, boolean flag, long i, List list, boolean flag1, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen, org.bukkit.generator.BiomeProvider biomeProvider) { // Holder holder = worlddimension.typeHolder(); // CraftBukkit - decompile error // Objects.requireNonNull(minecraftserver); // CraftBukkit - decompile error @@ -497,7 +497,7 @@ index c9def2202d7c2a523858ec124df2beaf994d9888..3a7bcee2e4b1c4ef2ba303b0200ae846 } else { this.level.addParticle(ParticleTypes.EXPLOSION, this.x, this.y, this.z, 1.0D, 0.0D, 0.0D); diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java -index cf8693d02de53f1e02d55936f889c5724889e3f5..a6c58a6f2a69c4783570c29d300dd996c01c014e 100644 +index 9f0126aedb94f74d01dc47112496160cc4e1f02c..dc3f2b26e19619adf80827d26b95209ded973c2a 100644 --- a/src/main/java/net/minecraft/world/level/Level.java +++ b/src/main/java/net/minecraft/world/level/Level.java @@ -172,7 +172,14 @@ public abstract class Level implements LevelAccessor, AutoCloseable { diff --git a/patches/server/0006-C2ME-optimizations.patch b/patches/server/0007-C2ME-optimizations.patch similarity index 100% rename from patches/server/0006-C2ME-optimizations.patch rename to patches/server/0007-C2ME-optimizations.patch diff --git a/patches/server/0007-Use-our-logo-instead-of-Purpur-s.patch b/patches/server/0008-Use-our-logo-instead-of-Purpur-s.patch similarity index 100% rename from patches/server/0007-Use-our-logo-instead-of-Purpur-s.patch rename to patches/server/0008-Use-our-logo-instead-of-Purpur-s.patch diff --git a/patches/server/0008-Smarter-statistics-ticking.patch b/patches/server/0009-Smarter-statistics-ticking.patch similarity index 100% rename from patches/server/0008-Smarter-statistics-ticking.patch rename to patches/server/0009-Smarter-statistics-ticking.patch diff --git a/patches/server/0009-Smooth-Teleports.patch b/patches/server/0010-Smooth-Teleports.patch similarity index 100% rename from patches/server/0009-Smooth-Teleports.patch rename to patches/server/0010-Smooth-Teleports.patch diff --git a/patches/server/0010-Fast-speed-check.patch b/patches/server/0011-Fast-speed-check.patch similarity index 100% rename from patches/server/0010-Fast-speed-check.patch rename to patches/server/0011-Fast-speed-check.patch diff --git a/patches/server/0011-PaperPR-Optimize-VarInts.patch b/patches/server/0012-PaperPR-Optimize-VarInts.patch similarity index 100% rename from patches/server/0011-PaperPR-Optimize-VarInts.patch rename to patches/server/0012-PaperPR-Optimize-VarInts.patch diff --git a/patches/server/0012-Options-of-warnings.patch b/patches/server/0013-Options-of-warnings.patch similarity index 95% rename from patches/server/0012-Options-of-warnings.patch rename to patches/server/0013-Options-of-warnings.patch index c2b978a..c556136 100644 --- a/patches/server/0012-Options-of-warnings.patch +++ b/patches/server/0013-Options-of-warnings.patch @@ -30,7 +30,7 @@ index bc9403d002ef24e71be67a962d099f5d73db9540..5582c15a37fbbf74d2039ba15d67684f } \ No newline at end of file diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java -index ca0ddafe66dd5d02b1e96b1fc1c574490b68e6d4..383045ae681d5366761c807a0032156203cdf9c9 100644 +index 9227cff62d675703785ad2eaebf6dcbb5adfbaa7..3e7dd41555263e8361db08d1380c767fe0ba8886 100644 --- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java +++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java @@ -185,7 +185,7 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface @@ -42,7 +42,7 @@ index ca0ddafe66dd5d02b1e96b1fc1c574490b68e6d4..383045ae681d5366761c807a00321562 DedicatedServer.LOGGER.warn("****************************"); DedicatedServer.LOGGER.warn("YOU ARE RUNNING THIS SERVER AS AN ADMINISTRATIVE OR ROOT USER. THIS IS NOT ADVISED."); DedicatedServer.LOGGER.warn("YOU ARE OPENING YOURSELF UP TO POTENTIAL RISKS WHEN DOING THIS."); -@@ -326,10 +326,15 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface +@@ -330,10 +330,15 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface // CraftBukkit end if (!this.usesAuthentication()) { @@ -61,7 +61,7 @@ index ca0ddafe66dd5d02b1e96b1fc1c574490b68e6d4..383045ae681d5366761c807a00321562 DedicatedServer.LOGGER.warn("Whilst this makes it possible to use BungeeCord or Velocity, unless access to your server is properly restricted, it also opens up the ability for hackers to connect with any username they choose."); // Purpur DedicatedServer.LOGGER.warn("Please see http://www.spigotmc.org/wiki/firewall-guide/ for further information."); } else { -@@ -337,7 +342,6 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface +@@ -341,7 +346,6 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface DedicatedServer.LOGGER.warn("You will not be offered any support as long as the server allows offline-mode players to join."); // Purpur } // Spigot end diff --git a/patches/server/0013-Add-an-option-for-tripwire-duping.patch b/patches/server/0014-Add-an-option-for-tripwire-duping.patch similarity index 100% rename from patches/server/0013-Add-an-option-for-tripwire-duping.patch rename to patches/server/0014-Add-an-option-for-tripwire-duping.patch diff --git a/patches/server/0014-Add-an-option-for-spigot-item-merging-mechanism.patch b/patches/server/0015-Add-an-option-for-spigot-item-merging-mechanism.patch similarity index 100% rename from patches/server/0014-Add-an-option-for-spigot-item-merging-mechanism.patch rename to patches/server/0015-Add-an-option-for-spigot-item-merging-mechanism.patch diff --git a/patches/server/0015-Global-Eula-file.patch b/patches/server/0016-Global-Eula-file.patch similarity index 100% rename from patches/server/0015-Global-Eula-file.patch rename to patches/server/0016-Global-Eula-file.patch diff --git a/patches/server/0016-Do-not-save-firework-entities-or-the-server-may-be-l.patch b/patches/server/0017-Do-not-save-firework-entities-or-the-server-may-be-l.patch similarity index 100% rename from patches/server/0016-Do-not-save-firework-entities-or-the-server-may-be-l.patch rename to patches/server/0017-Do-not-save-firework-entities-or-the-server-may-be-l.patch diff --git a/patches/server/0017-Disable-arrow-despawn-counter-by-default.patch b/patches/server/0018-Disable-arrow-despawn-counter-by-default.patch similarity index 100% rename from patches/server/0017-Disable-arrow-despawn-counter-by-default.patch rename to patches/server/0018-Disable-arrow-despawn-counter-by-default.patch diff --git a/patches/server/0018-Use-a-faster-random-implementation.patch b/patches/server/0019-Use-a-faster-random-implementation.patch similarity index 100% rename from patches/server/0018-Use-a-faster-random-implementation.patch rename to patches/server/0019-Use-a-faster-random-implementation.patch diff --git a/patches/server/0019-Don-t-create-new-random-instance.patch b/patches/server/0020-Don-t-create-new-random-instance.patch similarity index 100% rename from patches/server/0019-Don-t-create-new-random-instance.patch rename to patches/server/0020-Don-t-create-new-random-instance.patch diff --git a/patches/server/0020-Skip-entity-move-if-no-movement.patch b/patches/server/0021-Skip-entity-move-if-no-movement.patch similarity index 100% rename from patches/server/0020-Skip-entity-move-if-no-movement.patch rename to patches/server/0021-Skip-entity-move-if-no-movement.patch diff --git a/patches/server/0021-LazyDFU-optimization.patch b/patches/server/0022-LazyDFU-optimization.patch similarity index 100% rename from patches/server/0021-LazyDFU-optimization.patch rename to patches/server/0022-LazyDFU-optimization.patch diff --git a/patches/server/0022-Revert-purpur-spark-profiler.patch b/patches/server/0023-Revert-purpur-spark-profiler.patch similarity index 94% rename from patches/server/0022-Revert-purpur-spark-profiler.patch rename to patches/server/0023-Revert-purpur-spark-profiler.patch index 2472bbc..e1884fd 100644 --- a/patches/server/0022-Revert-purpur-spark-profiler.patch +++ b/patches/server/0023-Revert-purpur-spark-profiler.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Revert purpur spark profiler diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -index 4f029b96bf8deee597dbb56974e4519a1422f96d..a1f37a75d94cffbb412e48cdffec836eaad8300a 100644 +index 9e47bbefdb373a75a9903b19c23e9191b9c84846..d6099877d68c795ef980f82389c46baf239bacfd 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -@@ -435,38 +435,7 @@ public final class CraftServer implements Server { +@@ -436,38 +436,7 @@ public final class CraftServer implements Server { if (!pluginFolder.exists()) { pluginFolder.mkdirs(); } diff --git a/patches/server/0023-Optimized-getBiome-method.patch b/patches/server/0024-Optimized-getBiome-method.patch similarity index 100% rename from patches/server/0023-Optimized-getBiome-method.patch rename to patches/server/0024-Optimized-getBiome-method.patch diff --git a/patches/server/0024-Use-optimized-RecipeManager.patch b/patches/server/0025-Use-optimized-RecipeManager.patch similarity index 100% rename from patches/server/0024-Use-optimized-RecipeManager.patch rename to patches/server/0025-Use-optimized-RecipeManager.patch diff --git a/patches/server/0025-Revert-purpur-Remove-Timings.patch b/patches/server/0026-Revert-purpur-Remove-Timings.patch similarity index 97% rename from patches/server/0025-Revert-purpur-Remove-Timings.patch rename to patches/server/0026-Revert-purpur-Remove-Timings.patch index 7221d82..ebb138e 100644 --- a/patches/server/0025-Revert-purpur-Remove-Timings.patch +++ b/patches/server/0026-Revert-purpur-Remove-Timings.patch @@ -89,10 +89,10 @@ index e8efbbeece7e866c6c4d7489677d2d9e15fea4d0..8bc0cb9ad5bb4e76d962ff54305e2c08 PacketUtils.LOGGER.debug("Ignoring packet due to disconnection: {}", packet); } diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index a444c8c57a2ab16eba45b0379841a69ff60a5586..bc80783d36d46fb138bfa6f2e5e84679db0a68c1 100644 +index ede16b015b9dde07a7346e0bffde53082145798b..705fe5e4a8b25fb061263ac60e491aeff83bd930 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -328,13 +328,13 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop registryreadops, Thread thread, LevelStorageSource.LevelStorageAccess convertable_conversionsession, PackRepository resourcepackrepository, WorldStem worldstem, Proxy proxy, DataFixer datafixer, Services services, ChunkProgressListenerFactory worldloadlistenerfactory) { super("Server"); SERVER = this; // Paper - better singleton @@ -112,7 +112,7 @@ index a444c8c57a2ab16eba45b0379841a69ff60a5586..bc80783d36d46fb138bfa6f2e5e84679 this.status = new ServerStatus(); this.random = RandomSource.create(); this.port = -1; -@@ -936,9 +936,9 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0 && this.tickCount % autosavePeriod == 0; try { this.isSaving = true; -@@ -1464,20 +1464,20 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop 0; // Purpur net.minecraft.world.level.block.entity.HopperBlockEntity.skipHopperEvents = worldserver.paperConfig().hopper.disableMoveEvent || org.bukkit.event.inventory.InventoryMoveItemEvent.getHandlerList().getRegisteredListeners().length == 0; // Paper @@ -312,7 +312,7 @@ index a444c8c57a2ab16eba45b0379841a69ff60a5586..bc80783d36d46fb138bfa6f2e5e84679 } catch (Throwable throwable) { // Spigot Start CrashReport crashreport; -@@ -1583,33 +1582,33 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop { this.executeBlocking(() -> { this.saveDebugReport(path.resolve("server")); -@@ -2507,40 +2506,40 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop getEntities(@Nullable Entity except, AABB box, Predicate predicate) { @@ -1295,7 +1295,7 @@ index 9f0126aedb94f74d01dc47112496160cc4e1f02c..0c9f7f9ed3e24ddc6b963063723feb56 List list = Lists.newArrayList(); ((ServerLevel)this).getEntityLookup().getEntities(except, box, list, predicate); // Paper - optimise this call return list; -@@ -1207,7 +1207,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { +@@ -1215,7 +1215,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { @Override public List getEntities(EntityTypeTest filter, AABB box, Predicate predicate) { @@ -1304,7 +1304,7 @@ index 9f0126aedb94f74d01dc47112496160cc4e1f02c..0c9f7f9ed3e24ddc6b963063723feb56 List list = Lists.newArrayList(); // Paper start - optimise this call -@@ -1538,7 +1538,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { +@@ -1546,7 +1546,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { } public ProfilerFiller getProfiler() { diff --git a/patches/removed/0003-Async-path-processing.patch b/patches/server/0027-Async-path-processing.patch similarity index 100% rename from patches/removed/0003-Async-path-processing.patch rename to patches/server/0027-Async-path-processing.patch diff --git a/patches/removed/0004-Multithreaded-tracker.patch b/patches/server/0028-Multithreaded-tracker.patch similarity index 98% rename from patches/removed/0004-Multithreaded-tracker.patch rename to patches/server/0028-Multithreaded-tracker.patch index b5602e3..78c0d1b 100644 --- a/patches/removed/0004-Multithreaded-tracker.patch +++ b/patches/server/0028-Multithreaded-tracker.patch @@ -205,10 +205,10 @@ index f597d65d56964297eeeed6c7e77703764178fee0..665c377e2d0d342f4dcc89c4cbdfcc9e public ChunkHolder.FullChunkStatus status; diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java -index 3203b953709ca7cb9172f5912a922131ad7ec9eb..3c99de7bc5b3c5159ad76f63d67877756f152385 100644 +index a2a4965aec45f3ff83703b636e46f5c545cfb48e..a693c4cbcaf9720ac9549edab32f02063607820a 100644 --- a/src/main/java/net/minecraft/server/level/ChunkMap.java +++ b/src/main/java/net/minecraft/server/level/ChunkMap.java -@@ -1237,8 +1237,37 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider +@@ -1237,9 +1237,38 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider entity.tracker = null; // Paper - We're no longer tracked } @@ -242,10 +242,11 @@ index 3203b953709ca7cb9172f5912a922131ad7ec9eb..3c99de7bc5b3c5159ad76f63d6787775 + } + // petal end + -+ this.level.timings.tracker1.startTiming(); - //this.level.timings.tracker1.startTiming(); // Purpur + this.level.timings.tracker1.startTiming(); ++ //this.level.timings.tracker1.startTiming(); // Purpur try { for (TrackedEntity tracker : this.entityMap.values()) { + // update tracker entry @@ -1462,11 +1491,11 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider public class TrackedEntity { diff --git a/patches/removed/0006-Reduce-work-done-by-game-event-system.patch b/patches/server/0029-Reduce-work-done-by-game-event-system.patch similarity index 98% rename from patches/removed/0006-Reduce-work-done-by-game-event-system.patch rename to patches/server/0029-Reduce-work-done-by-game-event-system.patch index b84df95..98656ba 100644 --- a/patches/removed/0006-Reduce-work-done-by-game-event-system.patch +++ b/patches/server/0029-Reduce-work-done-by-game-event-system.patch @@ -11,7 +11,7 @@ You can find the original code on https://github.com/Bloom-host/Petal 2. euclideangameeventdispatcher is not used concurrently so we ban that usage for improved performance with allays diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java -index 571a1cbee376032b6b9f36c9fe3f9199a3ad3197..92e7ba78e18efb8263475ecc076bc49e88b85e84 100644 +index 3ffa7b3440b65ba3a4af4488f6ca9506e5a2128b..eb5f39b572c2a53c78aa0324ed194428e75a30a7 100644 --- a/src/main/java/net/minecraft/server/level/ServerLevel.java +++ b/src/main/java/net/minecraft/server/level/ServerLevel.java @@ -1703,6 +1703,7 @@ public class ServerLevel extends Level implements WorldGenLevel { @@ -41,7 +41,7 @@ index 22c309343299e60ed8028229b7f134109001ff35..d5947d29295ddc93ba8ac1c0fc61f7ba org.bukkit.craftbukkit.event.CraftEventFactory.sourceBlockOverride = blockEntity.getBlockPos(); // CraftBukkit - SPIGOT-7068: Add source block override, not the most elegant way but better than passing down a BlockPosition up to five methods deep. blockEntity.sculkSpreader.updateCursors(world, pos, world.getRandom(), true); diff --git a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java -index 620173eef4c2f30a97a4c2f8049ea01fcc60d0b2..bdf67c916fe435f3bd04a61cce6db93c606515ce 100644 +index 636c98d04eb4e14eab1fa208d9cb097e2ab7eef7..2ea38464a92d626127aecc41c3fc58d1cfb37e29 100644 --- a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java +++ b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java @@ -84,7 +84,18 @@ public class LevelChunk extends ChunkAccess { diff --git a/patches/removed/0008-Reduce-sensor-work.patch b/patches/server/0030-Reduce-sensor-work.patch similarity index 97% rename from patches/removed/0008-Reduce-sensor-work.patch rename to patches/server/0030-Reduce-sensor-work.patch index 5c17f04..7f3e46b 100644 --- a/patches/removed/0008-Reduce-sensor-work.patch +++ b/patches/server/0030-Reduce-sensor-work.patch @@ -10,7 +10,7 @@ this patch is focused around the sensors used for ai delete the line of sight cache less often and use a faster nearby comparison diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java -index ba673b7e5ae1084caa6b23763c9a83aac60269bb..9d824c56914292810091b358ff7d718add617f21 100644 +index b163ad5fb6fea59982e26fdbd4dd5b5dcb4350a5..4f3cce05807715b978792ffa28f2d63315818f54 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java @@ -1012,20 +1012,22 @@ public abstract class LivingEntity extends Entity {