From 92928ee93d1a7c49807c72428dff1b741999e667 Mon Sep 17 00:00:00 2001 From: Bacteriawa Date: Tue, 20 May 2025 14:13:16 +0800 Subject: [PATCH 1/4] Updated Upstream (Folia) --- build.gradle.kts | 2 +- gradle.properties | 2 +- ...-tpsbar-with-chunkhot-membar-and-regionbar.patch | 8 ++++---- .../0023-Correct-player-respawn-place.patch | 6 +++--- ...ectly-synced-data-after-player-teleportati.patch | 4 ++-- .../0031-Fix-uncorrected-death-check-of-folia.patch | 4 ++-- ...035-Kaiiju-Entity-tick-and-removal-limiter.patch | 2 +- ...3-Leaf-Secure-seed-and-matter-seed-command.patch | 2 +- ...4-Add-missing-teleportation-apis-for-folia.patch | 4 ++-- .../features/0055-Portal-Behavior-Modifiers.patch | 2 +- ...056-Leaves-Disable-moved-wrongly-threshold.patch | 6 +++--- .../0058-Leaves-Fix-SculkCatalyst-exp-skip.patch | 6 +++--- ...config-to-enable-Cross-Region-Damage-trace.patch | 6 +++--- ...tpsbar-with-chunkhot-membar-and-region-bar.patch | 13 ++++++------- .../0006-Force-disable-builtin-spark-plugin.patch | 10 +++++----- .../0007-SparklyPaper-Optimize-canSee-checks.patch | 4 ++-- ...9-Leaf-Secure-seed-and-matter-seed-command.patch | 4 ++-- 17 files changed, 42 insertions(+), 43 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b7864a4..cb6fa68 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent plugins { java // TODO java launcher tasks - id("io.papermc.paperweight.patcher") version "2.0.0-SNAPSHOT" + id("io.papermc.paperweight.patcher") version "2.0.0-beta.14" } paperweight { diff --git a/gradle.properties b/gradle.properties index 079626f..bc35375 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ group = me.earthme.luminol version=1.21.4-R0.1-SNAPSHOT mcVersion=1.21.4 -foliaRef=cd49d650b27aa329358593a84ef77444538ef014 +foliaRef=f69d1c974daa7646b869d4c11dcc86915eec96a8 org.gradle.configuration-cache=true org.gradle.caching=true diff --git a/luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch b/luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch index dbe1f51..0f5994c 100644 --- a/luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch +++ b/luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch @@ -80,7 +80,7 @@ index f4b738b05ec9488e20402efb6c935ff55d86adf2..a0a8b0c7d091f63f023f15a2620b03ae //Util.shutdownExecutors(); // Paper - Improved watchdog support; moved into super SkullBlockEntity.clear(); diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java -index f2d2ddfd964bff914e41c0b4150fe1aad7866ebf..7defcd15c44601bfd2f7f55046038693264defee 100644 +index f884c707d4c1f36801018e15efb9adf91f5d6b33..210eba85ac1a50d993ef6e19b65b9f8afada00ba 100644 --- a/net/minecraft/server/level/ServerLevel.java +++ b/net/minecraft/server/level/ServerLevel.java @@ -1339,6 +1339,8 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe @@ -118,10 +118,10 @@ index f2d2ddfd964bff914e41c0b4150fe1aad7866ebf..7defcd15c44601bfd2f7f55046038693 } diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index 42987d278bf4abbad9d63485a1050f4abc3e7367..3bc0fc1d411d3c5e206695510ec9288ffbf8c277 100644 +index 8a192bb24abca6d2ea90d70e12f14733658ed27b..6e3e872ba415e8e809cfbe5a4dc1441b39c45480 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -400,7 +400,9 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -393,7 +393,9 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc public com.destroystokyo.paper.event.entity.PlayerNaturallySpawnCreaturesEvent playerNaturallySpawnedEvent; // Paper - PlayerNaturallySpawnCreaturesEvent public @Nullable String clientBrandName = null; // Paper - Brand support public org.bukkit.event.player.PlayerQuitEvent.QuitReason quitReason = null; // Paper - Add API for quit reason; there are a lot of changes to do if we change all methods leading to the event @@ -132,7 +132,7 @@ index 42987d278bf4abbad9d63485a1050f4abc3e7367..3bc0fc1d411d3c5e206695510ec9288f // Paper start - rewrite chunk system private ca.spottedleaf.moonrise.patches.chunk_system.player.RegionizedPlayerChunkLoader.PlayerChunkLoaderData chunkLoader; private final ca.spottedleaf.moonrise.patches.chunk_system.player.RegionizedPlayerChunkLoader.ViewDistanceHolder viewDistanceHolder = new ca.spottedleaf.moonrise.patches.chunk_system.player.RegionizedPlayerChunkLoader.ViewDistanceHolder(); -@@ -1013,8 +1015,35 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1006,8 +1008,35 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc this.trackEnteredOrExitedLavaOnVehicle(); this.updatePlayerAttributes(); this.advancements.flushDirty(this); diff --git a/luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch b/luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch index eb3264a..38cba37 100644 --- a/luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch +++ b/luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Correct player respawn place diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index 3bc0fc1d411d3c5e206695510ec9288ffbf8c277..b6df8df78105e08ca7be82524685d8b9422abf21 100644 +index 6e3e872ba415e8e809cfbe5a4dc1441b39c45480..40f3700c9bf56cfb26f0bca0dc6320fad8c75a65 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -472,8 +472,10 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -465,8 +465,10 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc double amountX = selectMaxX - selectMinX; double amountZ = selectMaxZ - selectMinZ; @@ -21,7 +21,7 @@ index 3bc0fc1d411d3c5e206695510ec9288ffbf8c277..b6df8df78105e08ca7be82524685d8b9 return new BlockPos(selectX, 0, selectZ); } -@@ -484,10 +486,20 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -477,10 +479,20 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc } private static BlockPos findSpawnAround(ServerLevel world, ServerPlayer player, BlockPos selected) { diff --git a/luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch b/luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch index e599d55..5793272 100644 --- a/luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch +++ b/luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Fix incorrectly synced data after player teleportation Use vanilla's flag and logics to run some status sync after post teleportation, folia forgets send some packets after teleportation and which caused some desync between client and server diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index b6df8df78105e08ca7be82524685d8b9422abf21..10e3a54f3e7aa02a5c9986d3694c02bef07a66bf 100644 +index 40f3700c9bf56cfb26f0bca0dc6320fad8c75a65..b5d0eb5026067080a376b9c3f902dcdf40d5dc48 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -1812,14 +1812,20 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1805,14 +1805,20 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc this.connection.send(new ClientboundChangeDifficultyPacket( worlddata.getDifficulty(), worlddata.isDifficultyLocked() )); diff --git a/luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch b/luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch index dc79e42..dc6d45e 100644 --- a/luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch +++ b/luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Fix uncorrected death check of folia In the new mc version, mojang changed some checks in A.C.M(AbstractContainerMenu) and there is a new death check of player which will be executed when player dead.But on folia, player entity cannot be discarded unless they disconnected from the server, so there is an obvious bug that when player dead, the logic depend on that dead check will not be executed correctly because the check logic is still asserting the player is alive by checking if the player is discarded, which caused some exploits can save items in the crafting slots(with InventoryTweaks turned on in meteor client) when keepInventory is set to false diff --git a/net/minecraft/world/inventory/AbstractContainerMenu.java b/net/minecraft/world/inventory/AbstractContainerMenu.java -index acca8c51d2030c675c157b10d0bbc6af631afe61..d0b688e69979c5e7b8267ac96bd71bcd33444c41 100644 +index 50af953a4698a3c6e16b840fab764dd733b3fbc9..a9c058238819f3631d94ac306185e909821caf35 100644 --- a/net/minecraft/world/inventory/AbstractContainerMenu.java +++ b/net/minecraft/world/inventory/AbstractContainerMenu.java -@@ -689,7 +689,7 @@ public abstract class AbstractContainerMenu { +@@ -679,7 +679,7 @@ public abstract class AbstractContainerMenu { } private static void dropOrPlaceInInventory(Player player, ItemStack stack) { diff --git a/luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch b/luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch index 49dbeb0..4ebafa1 100644 --- a/luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch +++ b/luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch @@ -20,7 +20,7 @@ index c6e487a4c14e6b82533881d01f32349b9ae28728..2c747cb8a724cd25c9d724908f92b320 // block ticking private final ObjectLinkedOpenHashSet blockEvents = new ObjectLinkedOpenHashSet<>(); diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java -index 7defcd15c44601bfd2f7f55046038693264defee..5a87825606047f058df8de84bf933d216b5878b0 100644 +index 210eba85ac1a50d993ef6e19b65b9f8afada00ba..2763c3d87ef1f9fcbc01bdff7c0b266d46b8170a 100644 --- a/net/minecraft/server/level/ServerLevel.java +++ b/net/minecraft/server/level/ServerLevel.java @@ -808,6 +808,7 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe diff --git a/luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch b/luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch index 16fbe85..e254a41 100644 --- a/luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch +++ b/luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch @@ -65,7 +65,7 @@ index ac06b8a4813716a8d136be5731cbd96113976a7e..82d95005fc67336458b50c47d44ec404 } diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java -index 5a87825606047f058df8de84bf933d216b5878b0..d8e1febfa14be1c0f4869ae647bd17113660432b 100644 +index 2763c3d87ef1f9fcbc01bdff7c0b266d46b8170a..0cec31be4733ad330b09e3d2e81c696c396cac3c 100644 --- a/net/minecraft/server/level/ServerLevel.java +++ b/net/minecraft/server/level/ServerLevel.java @@ -620,6 +620,7 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe diff --git a/luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch b/luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch index bf98cdd..a9588db 100644 --- a/luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch +++ b/luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Add missing teleportation apis for folia diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index 10e3a54f3e7aa02a5c9986d3694c02bef07a66bf..ca67950e35c7f420846337e885d95b8eabca3f37 100644 +index b5d0eb5026067080a376b9c3f902dcdf40d5dc48..62634b5c29a3333fd8f39927f4d0a3258835c891 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -1673,6 +1673,9 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1666,6 +1666,9 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc if (respawnComplete != null) { respawnComplete.accept(ServerPlayer.this); } diff --git a/luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch b/luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch index eb37635..f366fbd 100644 --- a/luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch +++ b/luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Portal Behavior Modifiers diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java -index d8e1febfa14be1c0f4869ae647bd17113660432b..9b8325a55889155766e034ff8847751ac551b2d2 100644 +index 0cec31be4733ad330b09e3d2e81c696c396cac3c..de3042c1cad21c55b19ed12da0f4cbd99068540f 100644 --- a/net/minecraft/server/level/ServerLevel.java +++ b/net/minecraft/server/level/ServerLevel.java @@ -1353,7 +1353,26 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe diff --git a/luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch b/luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch index c566cb2..25d45d6 100644 --- a/luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch +++ b/luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch @@ -8,7 +8,7 @@ As part of: Leaves (https://github.com/LeavesMC/Leaves/blob/f553c53e4230aa032e54 Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) diff --git a/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/net/minecraft/server/network/ServerGamePacketListenerImpl.java -index a107d9ee24d0e39ce3e3e09bf27af1ea4ae35b96..225045400f152a9a8f030d6fe367764b00d99b24 100644 +index da45200818ef4f495c90517c234a41725f709b85..bf617d2ca5e66bbcd244e4f290a7b101a967d18b 100644 --- a/net/minecraft/server/network/ServerGamePacketListenerImpl.java +++ b/net/minecraft/server/network/ServerGamePacketListenerImpl.java @@ -581,7 +581,7 @@ public class ServerGamePacketListenerImpl @@ -29,7 +29,7 @@ index a107d9ee24d0e39ce3e3e09bf27af1ea4ae35b96..225045400f152a9a8f030d6fe367764b flag2 = true; // Paper - diff on change, this should be moved wrongly LOGGER.warn("{} (vehicle of {}) moved wrongly! {}", rootVehicle.getName().getString(), this.player.getName().getString(), Math.sqrt(d7)); } -@@ -1437,7 +1437,7 @@ public class ServerGamePacketListenerImpl +@@ -1438,7 +1438,7 @@ public class ServerGamePacketListenerImpl if (this.shouldCheckPlayerMovement(isFallFlying)) { float f2 = isFallFlying ? 300.0F : 100.0F; @@ -38,7 +38,7 @@ index a107d9ee24d0e39ce3e3e09bf27af1ea4ae35b96..225045400f152a9a8f030d6fe367764b // CraftBukkit end // Paper start - Add fail move event io.papermc.paper.event.player.PlayerFailMoveEvent event = fireFailMove(io.papermc.paper.event.player.PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY, -@@ -1509,7 +1509,8 @@ public class ServerGamePacketListenerImpl +@@ -1510,7 +1510,8 @@ public class ServerGamePacketListenerImpl d5 = d2 - this.player.getZ(); d7 = d3 * d3 + d4 * d4 + d5 * d5; boolean movedWrongly = false; // Paper - Add fail move event; rename diff --git a/luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch b/luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch index 797c5fe..9f1c028 100644 --- a/luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch +++ b/luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch @@ -8,10 +8,10 @@ As part of: Leaves (https://github.com/LeavesMC/Leaves/blob/f553c53e4230aa032e54 Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index ca67950e35c7f420846337e885d95b8eabca3f37..d9ea3db817878ff56a2772ce983ff95431e1326c 100644 +index 62634b5c29a3333fd8f39927f4d0a3258835c891..74e5fc8686042525dd79d773832ec0a88a135293 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -1358,7 +1358,7 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1351,7 +1351,7 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc } // SPIGOT-5478 must be called manually now @@ -20,7 +20,7 @@ index ca67950e35c7f420846337e885d95b8eabca3f37..d9ea3db817878ff56a2772ce983ff954 // we clean the player's inventory after the EntityDeathEvent is called so plugins can get the exact state of the inventory. if (!event.getKeepInventory()) { // Paper start - PlayerDeathEvent#getItemsToKeep -@@ -1392,6 +1392,15 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1385,6 +1385,15 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc this.setClientLoaded(false); } diff --git a/luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch b/luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch index 831349b..f06637f 100644 --- a/luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch +++ b/luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Add config to enable Cross Region Damage trace diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java -index d9ea3db817878ff56a2772ce983ff95431e1326c..fd4e37719baced819100f7ad2d1cf0350950cb60 100644 +index 74e5fc8686042525dd79d773832ec0a88a135293..221efd21385edb6656b37f7fb672539e92790805 100644 --- a/net/minecraft/server/level/ServerPlayer.java +++ b/net/minecraft/server/level/ServerPlayer.java -@@ -1378,6 +1378,13 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1371,6 +1371,13 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc this.awardStat(Stats.ENTITY_KILLED_BY.get(killCredit.getType())); killCredit.awardKillScore(this, cause); this.createWitherRose(killCredit); @@ -22,7 +22,7 @@ index d9ea3db817878ff56a2772ce983ff95431e1326c..fd4e37719baced819100f7ad2d1cf035 } this.level().broadcastEntityEvent(this, (byte)3); -@@ -1392,6 +1399,24 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc +@@ -1385,6 +1392,24 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc this.setClientLoaded(false); } diff --git a/luminol-server/paper-patches/features/0004-Add-tpsbar-with-chunkhot-membar-and-region-bar.patch b/luminol-server/paper-patches/features/0004-Add-tpsbar-with-chunkhot-membar-and-region-bar.patch index 526793b..160476e 100644 --- a/luminol-server/paper-patches/features/0004-Add-tpsbar-with-chunkhot-membar-and-region-bar.patch +++ b/luminol-server/paper-patches/features/0004-Add-tpsbar-with-chunkhot-membar-and-region-bar.patch @@ -22,10 +22,10 @@ index de8b9048c8395c05b8688bc9d984b8ad680f15b3..f42692cd4f0154705c3d5b030d281cfc + // KioCG end } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index ac878520dc4aaa0e6a1ce8de0982d60a8397bc15..af20bc3b9cfb056beca0a341e209a4cc5e869da3 100644 +index f7ceb89d9b908f02fc9e90e426e8e14e330ac041..b6e451c8a41a1d25bac679d18156d6e813efda2a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -@@ -2401,6 +2401,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -2400,6 +2400,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { handle.expToDrop = data.getInt("expToDrop"); handle.keepLevel = data.getBoolean("keepLevel"); } @@ -41,7 +41,7 @@ index ac878520dc4aaa0e6a1ce8de0982d60a8397bc15..af20bc3b9cfb056beca0a341e209a4cc } } -@@ -2422,6 +2431,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -2421,6 +2430,15 @@ public class CraftPlayer extends CraftHumanEntity implements Player { data.putLong("lastPlayed", System.currentTimeMillis()); data.putString("lastKnownName", handle.getScoreboardName()); @@ -57,11 +57,10 @@ index ac878520dc4aaa0e6a1ce8de0982d60a8397bc15..af20bc3b9cfb056beca0a341e209a4cc // Paper start - persist for use in offline save data if (!nbttagcompound.contains("Paper")) { nbttagcompound.put("Paper", new CompoundTag()); -@@ -3631,4 +3649,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { - public void setSimplifyContainerDesyncCheck(final boolean simplifyContainerDesyncCheck) { - this.simplifyContainerDesyncCheck = simplifyContainerDesyncCheck; +@@ -3614,4 +3632,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player { + public void setDeathScreenScore(final int score) { + getHandle().setScore(score); } -+ + // KioCG start - ChunkHot + @Override + public long getNearbyChunkHot() { diff --git a/luminol-server/paper-patches/features/0006-Force-disable-builtin-spark-plugin.patch b/luminol-server/paper-patches/features/0006-Force-disable-builtin-spark-plugin.patch index ab8c0d4..ddc2e3c 100644 --- a/luminol-server/paper-patches/features/0006-Force-disable-builtin-spark-plugin.patch +++ b/luminol-server/paper-patches/features/0006-Force-disable-builtin-spark-plugin.patch @@ -18,10 +18,10 @@ index a0b84535a9d3833d4df692b85b272f145559dd80..c2ba46408b5ad727d7a17f21d47b2898 return; } diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -index ae7ee8c67a71b0bc319d8079094b1806fc3e305a..07e59bbfa94103d610ec63e695e51a961cd6eec5 100644 +index a60e6ed437764ebeaab64e9ae7b87a177119e436..7ffdc9a50c41adcac5d2b8ac84036aacc789ece6 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -@@ -314,7 +314,7 @@ public final class CraftServer implements Server { +@@ -315,7 +315,7 @@ public final class CraftServer implements Server { public static Exception excessiveVelEx; // Paper - Velocity warnings private final io.papermc.paper.logging.SysoutCatcher sysoutCatcher = new io.papermc.paper.logging.SysoutCatcher(); // Paper private final io.papermc.paper.potion.PaperPotionBrewer potionBrewer; // Paper - Custom Potion Mixes @@ -30,7 +30,7 @@ index ae7ee8c67a71b0bc319d8079094b1806fc3e305a..07e59bbfa94103d610ec63e695e51a96 // Paper start - Folia region threading API private final io.papermc.paper.threadedregions.scheduler.FoliaRegionScheduler regionizedScheduler = new io.papermc.paper.threadedregions.scheduler.FoliaRegionScheduler(); // Folia - region threading -@@ -492,7 +492,7 @@ public final class CraftServer implements Server { +@@ -493,7 +493,7 @@ public final class CraftServer implements Server { } this.potionBrewer = new io.papermc.paper.potion.PaperPotionBrewer(console); // Paper - custom potion mixes datapackManager = new io.papermc.paper.datapack.PaperDatapackManager(console.getPackRepository()); // Paper @@ -39,7 +39,7 @@ index ae7ee8c67a71b0bc319d8079094b1806fc3e305a..07e59bbfa94103d610ec63e695e51a96 } public boolean getCommandBlockOverride(String command) { -@@ -1156,7 +1156,7 @@ public final class CraftServer implements Server { +@@ -1157,7 +1157,7 @@ public final class CraftServer implements Server { this.reloadData(); org.spigotmc.SpigotConfig.registerCommands(); // Spigot io.papermc.paper.command.PaperCommands.registerCommands(this.console); // Paper @@ -48,7 +48,7 @@ index ae7ee8c67a71b0bc319d8079094b1806fc3e305a..07e59bbfa94103d610ec63e695e51a96 this.overrideAllCommandBlockCommands = this.commandsConfiguration.getStringList("command-block-overrides").contains("*"); this.ignoreVanillaPermissions = this.commandsConfiguration.getBoolean("ignore-vanilla-permissions"); -@@ -1185,7 +1185,7 @@ public final class CraftServer implements Server { +@@ -1186,7 +1186,7 @@ public final class CraftServer implements Server { this.loadPlugins(); this.enablePlugins(PluginLoadOrder.STARTUP); this.enablePlugins(PluginLoadOrder.POSTWORLD); diff --git a/luminol-server/paper-patches/features/0007-SparklyPaper-Optimize-canSee-checks.patch b/luminol-server/paper-patches/features/0007-SparklyPaper-Optimize-canSee-checks.patch index 6645db1..90df988 100644 --- a/luminol-server/paper-patches/features/0007-SparklyPaper-Optimize-canSee-checks.patch +++ b/luminol-server/paper-patches/features/0007-SparklyPaper-Optimize-canSee-checks.patch @@ -5,7 +5,7 @@ Subject: [PATCH] SparklyPaper Optimize canSee checks diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java -index af20bc3b9cfb056beca0a341e209a4cc5e869da3..91dd18a874ea83bed83983ecfa52decce2b163a5 100644 +index 3819c748473f2cbf53890867e552985eeb8ee35f..8cb02f08ccddd69ad3ea868e848c61dfb4fa5fe7 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -210,7 +210,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @@ -17,7 +17,7 @@ index af20bc3b9cfb056beca0a341e209a4cc5e869da3..91dd18a874ea83bed83983ecfa52decc private final Set unlistedEntities = new HashSet<>(); // Paper - Add Listing API for Player private static final WeakHashMap> pluginWeakReferences = new WeakHashMap<>(); private int hash = 0; -@@ -2265,9 +2265,16 @@ public class CraftPlayer extends CraftHumanEntity implements Player { +@@ -2264,9 +2264,16 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public boolean canSee(org.bukkit.entity.Entity entity) { diff --git a/luminol-server/paper-patches/features/0009-Leaf-Secure-seed-and-matter-seed-command.patch b/luminol-server/paper-patches/features/0009-Leaf-Secure-seed-and-matter-seed-command.patch index 156b23a..3303e14 100644 --- a/luminol-server/paper-patches/features/0009-Leaf-Secure-seed-and-matter-seed-command.patch +++ b/luminol-server/paper-patches/features/0009-Leaf-Secure-seed-and-matter-seed-command.patch @@ -23,10 +23,10 @@ index f42692cd4f0154705c3d5b030d281cfc333803ed..39cc976f65f826a00e2e637c139f9134 @Override diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -index 07e59bbfa94103d610ec63e695e51a961cd6eec5..9c7a5d0a94417a65788330b7239aa746006407fa 100644 +index 7ffdc9a50c41adcac5d2b8ac84036aacc789ece6..292f32c935767b54098290eea8a512b82f962caf 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -@@ -1423,7 +1423,11 @@ public final class CraftServer implements Server { +@@ -1424,7 +1424,11 @@ public final class CraftServer implements Server { registryAccess = levelDataAndDimensions.dimensions().dimensionsRegistryAccess(); } else { LevelSettings levelSettings; From e84a8a5c1826f1a1f8c42e15d59e70ff47b7610c Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Tue, 20 May 2025 18:24:08 +0800 Subject: [PATCH 2/4] [ci skip]refactor: rename some Class name --- ...c.java.patch => DefaultTransformLogic.java.patch} | 4 ++-- .../earthme/luminol/config/LuminolConfig.java.patch | 12 ++++++------ ...onfig.java.patch => TransformedConfig.java.patch} | 12 ++++++------ .../config/modules/removed/RemovedConfig.java.patch | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) rename luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/{DefaultTransferLogic.java.patch => DefaultTransformLogic.java.patch} (56%) rename luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/{TransferringConfig.java.patch => TransformedConfig.java.patch} (53%) diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransferLogic.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransformLogic.java.patch similarity index 56% rename from luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransferLogic.java.patch rename to luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransformLogic.java.patch index 9811b29..8ea7d8b 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransferLogic.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/DefaultTransformLogic.java.patch @@ -1,9 +1,9 @@ --- /dev/null -+++ b/src/main/java/me/earthme/luminol/config/DefaultTransferLogic.java ++++ b/src/main/java/me/earthme/luminol/config/DefaultTransformLogic.java @@ -1,0 +_,7 @@ +package me.earthme.luminol.config; + -+public class DefaultTransferLogic { ++public class DefaultTransformLogic { + public Object transform(Object obj) { + return obj; + } diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/LuminolConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/LuminolConfig.java.patch index 2c4822a..4c0bafb 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/LuminolConfig.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/LuminolConfig.java.patch @@ -131,24 +131,24 @@ + boolean removed = fullConfigKeyName.equals("removed.removed_config.removed"); + + if (!configFileInstance.contains(fullConfigKeyName) || removed) { -+ for (TransferringConfig transferringConfig : field.getAnnotationsByType(TransferringConfig.class)) { -+ final String oldConfigKeyName = String.join(".", transferringConfig.category()) + "." + transferringConfig.name(); ++ for (TransformedConfig transformedConfig : field.getAnnotationsByType(TransformedConfig.class)) { ++ final String oldConfigKeyName = String.join(".", transformedConfig.category()) + "." + transformedConfig.name(); + Object oldValue = configFileInstance.get(oldConfigKeyName); + if (oldValue != null) { + boolean success = true; -+ if (transferringConfig.transfer() && !removed) { ++ if (transformedConfig.transform() && !removed) { + try { -+ for (Class logic : transferringConfig.transferLogic()) { ++ for (Class logic : transformedConfig.transformLogic()) { + oldValue = logic.getDeclaredConstructor().newInstance().transform(oldValue); + } + configFileInstance.add(fullConfigKeyName, oldValue); + } catch (Exception e) { + success = false; -+ logger.error("Failed to transfer removed config {}!", transferringConfig.name()); ++ logger.error("Failed to transform removed config {}!", transformedConfig.name()); + } + } + -+ if (success) removeConfig(oldConfigKeyName, transferringConfig.category()); ++ if (success) removeConfig(oldConfigKeyName, transformedConfig.category()); + final String comments = configInfo.comments(); + + if (!comments.isBlank()) configFileInstance.setComment(fullConfigKeyName, comments); diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransferringConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransformedConfig.java.patch similarity index 53% rename from luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransferringConfig.java.patch rename to luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransformedConfig.java.patch index a291ca7..4f61b02 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransferringConfig.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/TransformedConfig.java.patch @@ -1,5 +1,5 @@ --- /dev/null -+++ b/src/main/java/me/earthme/luminol/config/TransferringConfig.java ++++ b/src/main/java/me/earthme/luminol/config/TransformedConfig.java @@ -1,0 +_,22 @@ +package me.earthme.luminol.config; + @@ -8,18 +8,18 @@ +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) -+@Repeatable(TransferringConfig.List.class) -+public @interface TransferringConfig { ++@Repeatable(TransformedConfig.List.class) ++public @interface TransformedConfig { + String name() default ""; + + String[] category() default ""; + -+ boolean transfer() default true; ++ boolean transform() default true; + -+ Class[] transferLogic() default {DefaultTransferLogic.class}; ++ Class[] transformLogic() default {DefaultTransformLogic.class}; + + @Retention(RetentionPolicy.RUNTIME) + @interface List { -+ TransferringConfig[] value(); ++ TransformedConfig[] value(); + } +} diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/removed/RemovedConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/removed/RemovedConfig.java.patch index bef2e70..d673c85 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/removed/RemovedConfig.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/removed/RemovedConfig.java.patch @@ -6,7 +6,7 @@ +import me.earthme.luminol.config.*; + +public class RemovedConfig implements IConfigModule { -+ @TransferringConfig(name = "example", category = {"removed", "example"}, transfer = false) ++ @TransformedConfig(name = "example", category = {"removed", "example"}, transform = false) + @DoNotLoad + @ConfigInfo(baseName = "removed", comments = + """ From 3a7d1bd81dcffcc227b725d3adc5dc54f03599ef Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Wed, 21 May 2025 13:05:30 +0800 Subject: [PATCH 3/4] feat: Disable end crystal check (#102) --- ...d-config-to-modify-tripwire-behavior.patch | 4 +-- .../0063-Disable-end-crystal-check.patch | 27 +++++++++++++++++++ .../DisableEndCrystalCheckConfig.java.patch | 26 ++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch create mode 100644 luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch diff --git a/luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch b/luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch index e9d2095..23fbb2a 100644 --- a/luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch +++ b/luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch @@ -31,7 +31,7 @@ index 9aace993c6c18f1a50610e4766225485984b8167..419c1c7e14691a472b70ed548ecb928c } } diff --git a/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java b/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java -index f96fc1391167dea48cac1caa464b9026657df89a..ba2da205b046d7d3aab8fb21e116f9be73b13eb3 100644 +index f96fc1391167dea48cac1caa464b9026657df89a..29b286386546db9d809f1b1b5c98571d3058a0f5 100644 --- a/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java +++ b/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java @@ -27,6 +27,11 @@ public class EndPlatformFeature extends Feature { @@ -84,7 +84,7 @@ index f96fc1391167dea48cac1caa464b9026657df89a..ba2da205b046d7d3aab8fb21e116f9be - // SPIGOT-7856: End platform not dropping items after replacing blocks - if (dropBlocks) { - blockList.getList().forEach((state) -> level.destroyBlock(state.getPosition(), true, null)); -+ if (flag21 && !me.earthme.luminol.config.modules.misc.AllowTripwireDupe.enabled) { ++ if (flag21 || !me.earthme.luminol.config.modules.misc.AllowTripwireDupe.enabled) { + // Luminol start - When updated replace it with newer code + if (dropBlocks) { + java.util.function.Consumer beforeRun = state -> level.destroyBlock(state.getPosition(), !blockList1.contains(state.getPosition()), null); diff --git a/luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch b/luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch new file mode 100644 index 0000000..e9dafb7 --- /dev/null +++ b/luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Helvetica Volubi +Date: Wed, 21 May 2025 13:04:00 +0800 +Subject: [PATCH] Disable end crystal check + + +diff --git a/net/minecraft/world/level/dimension/end/EndDragonFight.java b/net/minecraft/world/level/dimension/end/EndDragonFight.java +index 2e156694b337760be986fdf1cbf863b0d896ef2d..b55ac3c0d19cf9117368c17687fa34099bfe3533 100644 +--- a/net/minecraft/world/level/dimension/end/EndDragonFight.java ++++ b/net/minecraft/world/level/dimension/end/EndDragonFight.java +@@ -546,6 +546,8 @@ public class EndDragonFight { + + blockPos = this.portalLocation; + } ++ // Luminol start - Disable end crystal check ++ if (!me.earthme.luminol.config.modules.misc.DisableEndCrystalCheckConfig.disableEndCrystalCheck) { + // Paper start - Perf: Do crystal-portal proximity check before entity lookup + if (placedEndCrystalPos != null) { + // The end crystal must be 0 or 1 higher than the portal origin +@@ -561,6 +563,7 @@ public class EndDragonFight { + } + } + // Paper end - Perf: Do crystal-portal proximity check before entity lookup ++ } // Luminol end - Disable end crystal check + + + List list = Lists.newArrayList(); diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch new file mode 100644 index 0000000..569a26d --- /dev/null +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch @@ -0,0 +1,26 @@ +--- /dev/null ++++ b/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java +@@ -1,0 +_,23 @@ ++package me.earthme.luminol.config.modules.misc; ++ ++import me.earthme.luminol.config.ConfigInfo; ++import me.earthme.luminol.config.EnumConfigCategory; ++import me.earthme.luminol.config.IConfigModule; ++ ++public class DisableEndCrystalCheckConfig implements IConfigModule { ++ @ConfigInfo(baseName = "disable_end_crystal_check", comments = ++ """ ++ Disable paper's End Crystal position check. ++ It reverts to vanilla respawn dragon logic.""") ++ public static boolean disableEndCrystalCheck = false; ++ ++ @Override ++ public EnumConfigCategory getCategory() { ++ return EnumConfigCategory.MISC; ++ } ++ ++ @Override ++ public String getBaseName() { ++ return "endCrystal"; ++ } ++} From 1d88056195b12918952c210de61f7059874e616e Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Wed, 21 May 2025 18:22:39 +0800 Subject: [PATCH 4/4] refactor: resort patches --- ...-Add-config-to-disable-end-crystal-check.patch} | 2 +- ...d-config-to-disable-entity-tick-catchers.patch} | 0 ...-Add-config-to-disable-heightmap-warning.patch} | 0 ...> 0013-Add-config-to-enable-tick-command.patch} | 0 ...4-Add-config-to-modify-tripwire-behavior.patch} | 0 ...> 0015-Add-config-to-revert-raid-changes.patch} | 14 +++++++------- ...-to-verify-signature-only-in-online-mode.patch} | 0 ...able-region-format-framework-linear-v2-r.patch} | 0 ...r-off-region-adult-following-ai-behavior.patch} | 0 ...ce-the-data-command-to-be-enabled-config.patch} | 0 ...s-api.patch => 0020-Add-tick-regions-api.patch} | 0 ...psbar-with-chunkhot-membar-and-regionbar.patch} | 0 ...nc-if-entity-was-moving-to-another-regio.patch} | 0 ...ing-folia-off-region-POI-accessing-issue.patch} | 0 ...tch => 0024-Correct-player-respawn-place.patch} | 0 ...mmand-IllegalArgumentException-crash-fix.patch} | 0 ...t-search-the-block-out-of-current-region.patch} | 0 ... 0027-Force-disable-builtin-spark-plugin.patch} | 0 ...ch => 0028-Fix-creative-player-item-pick.patch} | 0 ...-issue-around-entity-memory-typed-Global.patch} | 0 ...tly-synced-data-after-player-teleportati.patch} | 0 ...=> 0031-Fix-off-tickregion-sync-teleport.patch} | 0 ...032-Fix-uncorrected-death-check-of-folia.patch} | 0 ....patch => 0033-Paper-Hopper-behavior-fix.patch} | 0 ...ent-zombie-reinforcements-loading-chunks.patch} | 0 ...035-Kaiiju-Don-t-pathfind-outside-region.patch} | 0 ...6-Kaiiju-Entity-tick-and-removal-limiter.patch} | 0 ...-Kaiiju-Vanilla-end-portal-teleportation.patch} | 0 ...k.patch => 0038-Petal-Reduce-sensor-work.patch} | 0 ...39-Purpur-Barrels-and-enderchests-6-rows.patch} | 0 ...> 0040-Purpur-Lobotomize-stuck-villagers.patch} | 0 ...> 0041-Purpur-Use-alternative-keep-alive.patch} | 0 ...fish-Cache-climbing-check-for-activation.patch} | 0 ...-Pufferfish-Reduce-chunk-loading-lookups.patch} | 0 ... => 0044-Gale-Faster-chunk-serialization.patch} | 0 ...h => 0045-Gale-Optimize-noise-generation.patch} | 0 ...-AI-attributes-with-optimized-collection.patch} | 0 ...ale-Skip-entity-move-if-movement-is-zero.patch} | 0 ...=> 0048-Gale-Use-platform-math-functions.patch} | 0 ...49-Gale-Variable-entity-wake-up-duration.patch} | 0 ...0050-SparklyPaper-Optimize-canSee-checks.patch} | 0 ...-Skip-distanceToSqr-call-in-ServerEntity.patch} | 0 ...ace-brain-maps-with-optimized-collection.patch} | 0 ...useless-creating-stats-json-bases-on-pla.patch} | 0 ...Leaf-Secure-seed-and-matter-seed-command.patch} | 0 ...Add-missing-teleportation-apis-for-folia.patch} | 0 ....patch => 0056-Portal-Behavior-Modifiers.patch} | 0 ...7-Leaves-Disable-moved-wrongly-threshold.patch} | 0 ...ncorrect-Collision-Behavior-for-Block-Sh.patch} | 0 ...> 0059-Leaves-Fix-SculkCatalyst-exp-skip.patch} | 0 ...nfig-to-enable-Cross-Region-Damage-trace.patch} | 0 ...-Add-config-to-enable-Raytracing-tracker.patch} | 0 ...ast-util.patch => 0062-Lithium-Fast-util.patch} | 0 ...-unnecessary-calculations-if-player-is-n.patch} | 0 .../misc/DisableEndCrystalCheckConfig.java.patch | 2 +- .../modules/misc/RaidChangesConfig.java.patch | 6 +++--- 56 files changed, 12 insertions(+), 12 deletions(-) rename luminol-server/minecraft-patches/features/{0063-Disable-end-crystal-check.patch => 0010-Add-config-to-disable-end-crystal-check.patch} (95%) rename luminol-server/minecraft-patches/features/{0010-Add-config-to-disable-entity-tick-catchers.patch => 0011-Add-config-to-disable-entity-tick-catchers.patch} (100%) rename luminol-server/minecraft-patches/features/{0011-Add-config-to-disable-heightmap-warning.patch => 0012-Add-config-to-disable-heightmap-warning.patch} (100%) rename luminol-server/minecraft-patches/features/{0012-Add-config-to-enable-tick-command.patch => 0013-Add-config-to-enable-tick-command.patch} (100%) rename luminol-server/minecraft-patches/features/{0013-Add-config-to-modify-tripwire-behavior.patch => 0014-Add-config-to-modify-tripwire-behavior.patch} (100%) rename luminol-server/minecraft-patches/features/{0014-Add-config-to-revert-raid-changes.patch => 0015-Add-config-to-revert-raid-changes.patch} (94%) rename luminol-server/minecraft-patches/features/{0015-Add-config-to-verify-signature-only-in-online-mode.patch => 0016-Add-config-to-verify-signature-only-in-online-mode.patch} (100%) rename luminol-server/minecraft-patches/features/{0016-Add-configurable-region-format-framework-linear-v2-r.patch => 0017-Add-configurable-region-format-framework-linear-v2-r.patch} (100%) rename luminol-server/minecraft-patches/features/{0017-Add-fix-for-off-region-adult-following-ai-behavior.patch => 0018-Add-fix-for-off-region-adult-following-ai-behavior.patch} (100%) rename luminol-server/minecraft-patches/features/{0018-Add-force-the-data-command-to-be-enabled-config.patch => 0019-Add-force-the-data-command-to-be-enabled-config.patch} (100%) rename luminol-server/minecraft-patches/features/{0019-Add-tick-regions-api.patch => 0020-Add-tick-regions-api.patch} (100%) rename luminol-server/minecraft-patches/features/{0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch => 0021-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch} (100%) rename luminol-server/minecraft-patches/features/{0021-Teleport-async-if-entity-was-moving-to-another-regio.patch => 0022-Teleport-async-if-entity-was-moving-to-another-regio.patch} (100%) rename luminol-server/minecraft-patches/features/{0022-Try-fixing-folia-off-region-POI-accessing-issue.patch => 0023-Try-fixing-folia-off-region-POI-accessing-issue.patch} (100%) rename luminol-server/minecraft-patches/features/{0023-Correct-player-respawn-place.patch => 0024-Correct-player-respawn-place.patch} (100%) rename luminol-server/minecraft-patches/features/{0024-Command-IllegalArgumentException-crash-fix.patch => 0025-Command-IllegalArgumentException-crash-fix.patch} (100%) rename luminol-server/minecraft-patches/features/{0025-Do-not-search-the-block-out-of-current-region.patch => 0026-Do-not-search-the-block-out-of-current-region.patch} (100%) rename luminol-server/minecraft-patches/features/{0026-Force-disable-builtin-spark-plugin.patch => 0027-Force-disable-builtin-spark-plugin.patch} (100%) rename luminol-server/minecraft-patches/features/{0027-Fix-creative-player-item-pick.patch => 0028-Fix-creative-player-item-pick.patch} (100%) rename luminol-server/minecraft-patches/features/{0028-Fix-a-series-issue-around-entity-memory-typed-Global.patch => 0029-Fix-a-series-issue-around-entity-memory-typed-Global.patch} (100%) rename luminol-server/minecraft-patches/features/{0029-Fix-incorrectly-synced-data-after-player-teleportati.patch => 0030-Fix-incorrectly-synced-data-after-player-teleportati.patch} (100%) rename luminol-server/minecraft-patches/features/{0030-Fix-off-tickregion-sync-teleport.patch => 0031-Fix-off-tickregion-sync-teleport.patch} (100%) rename luminol-server/minecraft-patches/features/{0031-Fix-uncorrected-death-check-of-folia.patch => 0032-Fix-uncorrected-death-check-of-folia.patch} (100%) rename luminol-server/minecraft-patches/features/{0032-Paper-Hopper-behavior-fix.patch => 0033-Paper-Hopper-behavior-fix.patch} (100%) rename luminol-server/minecraft-patches/features/{0033-Paper-Prevent-zombie-reinforcements-loading-chunks.patch => 0034-Paper-Prevent-zombie-reinforcements-loading-chunks.patch} (100%) rename luminol-server/minecraft-patches/features/{0034-Kaiiju-Don-t-pathfind-outside-region.patch => 0035-Kaiiju-Don-t-pathfind-outside-region.patch} (100%) rename luminol-server/minecraft-patches/features/{0035-Kaiiju-Entity-tick-and-removal-limiter.patch => 0036-Kaiiju-Entity-tick-and-removal-limiter.patch} (100%) rename luminol-server/minecraft-patches/features/{0036-Kaiiju-Vanilla-end-portal-teleportation.patch => 0037-Kaiiju-Vanilla-end-portal-teleportation.patch} (100%) rename luminol-server/minecraft-patches/features/{0037-Petal-Reduce-sensor-work.patch => 0038-Petal-Reduce-sensor-work.patch} (100%) rename luminol-server/minecraft-patches/features/{0038-Purpur-Barrels-and-enderchests-6-rows.patch => 0039-Purpur-Barrels-and-enderchests-6-rows.patch} (100%) rename luminol-server/minecraft-patches/features/{0039-Purpur-Lobotomize-stuck-villagers.patch => 0040-Purpur-Lobotomize-stuck-villagers.patch} (100%) rename luminol-server/minecraft-patches/features/{0040-Purpur-Use-alternative-keep-alive.patch => 0041-Purpur-Use-alternative-keep-alive.patch} (100%) rename luminol-server/minecraft-patches/features/{0041-Pufferfish-Cache-climbing-check-for-activation.patch => 0042-Pufferfish-Cache-climbing-check-for-activation.patch} (100%) rename luminol-server/minecraft-patches/features/{0042-Pufferfish-Reduce-chunk-loading-lookups.patch => 0043-Pufferfish-Reduce-chunk-loading-lookups.patch} (100%) rename luminol-server/minecraft-patches/features/{0043-Gale-Faster-chunk-serialization.patch => 0044-Gale-Faster-chunk-serialization.patch} (100%) rename luminol-server/minecraft-patches/features/{0044-Gale-Optimize-noise-generation.patch => 0045-Gale-Optimize-noise-generation.patch} (100%) rename luminol-server/minecraft-patches/features/{0045-Gale-Replace-AI-attributes-with-optimized-collection.patch => 0046-Gale-Replace-AI-attributes-with-optimized-collection.patch} (100%) rename luminol-server/minecraft-patches/features/{0046-Gale-Skip-entity-move-if-movement-is-zero.patch => 0047-Gale-Skip-entity-move-if-movement-is-zero.patch} (100%) rename luminol-server/minecraft-patches/features/{0047-Gale-Use-platform-math-functions.patch => 0048-Gale-Use-platform-math-functions.patch} (100%) rename luminol-server/minecraft-patches/features/{0048-Gale-Variable-entity-wake-up-duration.patch => 0049-Gale-Variable-entity-wake-up-duration.patch} (100%) rename luminol-server/minecraft-patches/features/{0049-SparklyPaper-Optimize-canSee-checks.patch => 0050-SparklyPaper-Optimize-canSee-checks.patch} (100%) rename luminol-server/minecraft-patches/features/{0050-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch => 0051-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch} (100%) rename luminol-server/minecraft-patches/features/{0051-Leaf-Replace-brain-maps-with-optimized-collection.patch => 0052-Leaf-Replace-brain-maps-with-optimized-collection.patch} (100%) rename luminol-server/minecraft-patches/features/{0052-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch => 0053-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch} (100%) rename luminol-server/minecraft-patches/features/{0053-Leaf-Secure-seed-and-matter-seed-command.patch => 0054-Leaf-Secure-seed-and-matter-seed-command.patch} (100%) rename luminol-server/minecraft-patches/features/{0054-Add-missing-teleportation-apis-for-folia.patch => 0055-Add-missing-teleportation-apis-for-folia.patch} (100%) rename luminol-server/minecraft-patches/features/{0055-Portal-Behavior-Modifiers.patch => 0056-Portal-Behavior-Modifiers.patch} (100%) rename luminol-server/minecraft-patches/features/{0056-Leaves-Disable-moved-wrongly-threshold.patch => 0057-Leaves-Disable-moved-wrongly-threshold.patch} (100%) rename luminol-server/minecraft-patches/features/{0057-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch => 0058-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch} (100%) rename luminol-server/minecraft-patches/features/{0058-Leaves-Fix-SculkCatalyst-exp-skip.patch => 0059-Leaves-Fix-SculkCatalyst-exp-skip.patch} (100%) rename luminol-server/minecraft-patches/features/{0059-Add-config-to-enable-Cross-Region-Damage-trace.patch => 0060-Add-config-to-enable-Cross-Region-Damage-trace.patch} (100%) rename luminol-server/minecraft-patches/features/{0060-Add-config-to-enable-Raytracing-tracker.patch => 0061-Add-config-to-enable-Raytracing-tracker.patch} (100%) rename luminol-server/minecraft-patches/features/{0061-Lithium-Fast-util.patch => 0062-Lithium-Fast-util.patch} (100%) rename luminol-server/minecraft-patches/features/{0062-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch => 0063-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch} (100%) diff --git a/luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch b/luminol-server/minecraft-patches/features/0010-Add-config-to-disable-end-crystal-check.patch similarity index 95% rename from luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch rename to luminol-server/minecraft-patches/features/0010-Add-config-to-disable-end-crystal-check.patch index e9dafb7..8e4bf39 100644 --- a/luminol-server/minecraft-patches/features/0063-Disable-end-crystal-check.patch +++ b/luminol-server/minecraft-patches/features/0010-Add-config-to-disable-end-crystal-check.patch @@ -1,7 +1,7 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Wed, 21 May 2025 13:04:00 +0800 -Subject: [PATCH] Disable end crystal check +Subject: [PATCH] Add config to disable end crystal check diff --git a/net/minecraft/world/level/dimension/end/EndDragonFight.java b/net/minecraft/world/level/dimension/end/EndDragonFight.java diff --git a/luminol-server/minecraft-patches/features/0010-Add-config-to-disable-entity-tick-catchers.patch b/luminol-server/minecraft-patches/features/0011-Add-config-to-disable-entity-tick-catchers.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0010-Add-config-to-disable-entity-tick-catchers.patch rename to luminol-server/minecraft-patches/features/0011-Add-config-to-disable-entity-tick-catchers.patch diff --git a/luminol-server/minecraft-patches/features/0011-Add-config-to-disable-heightmap-warning.patch b/luminol-server/minecraft-patches/features/0012-Add-config-to-disable-heightmap-warning.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0011-Add-config-to-disable-heightmap-warning.patch rename to luminol-server/minecraft-patches/features/0012-Add-config-to-disable-heightmap-warning.patch diff --git a/luminol-server/minecraft-patches/features/0012-Add-config-to-enable-tick-command.patch b/luminol-server/minecraft-patches/features/0013-Add-config-to-enable-tick-command.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0012-Add-config-to-enable-tick-command.patch rename to luminol-server/minecraft-patches/features/0013-Add-config-to-enable-tick-command.patch diff --git a/luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch b/luminol-server/minecraft-patches/features/0014-Add-config-to-modify-tripwire-behavior.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0013-Add-config-to-modify-tripwire-behavior.patch rename to luminol-server/minecraft-patches/features/0014-Add-config-to-modify-tripwire-behavior.patch diff --git a/luminol-server/minecraft-patches/features/0014-Add-config-to-revert-raid-changes.patch b/luminol-server/minecraft-patches/features/0015-Add-config-to-revert-raid-changes.patch similarity index 94% rename from luminol-server/minecraft-patches/features/0014-Add-config-to-revert-raid-changes.patch rename to luminol-server/minecraft-patches/features/0015-Add-config-to-revert-raid-changes.patch index d078c08..9a79bb9 100644 --- a/luminol-server/minecraft-patches/features/0014-Add-config-to-revert-raid-changes.patch +++ b/luminol-server/minecraft-patches/features/0015-Add-config-to-revert-raid-changes.patch @@ -21,7 +21,7 @@ index 80f17f33f670018240c854df589cf90cdeab6e70..8672757a4d5fb5c247599782fece6b8d if (raidAt == null || raidAt.getRaidOmenLevel() < raidAt.getMaxRaidOmenLevel()) { serverPlayer.addEffect(new MobEffectInstance(MobEffects.RAID_OMEN, 600, amplifier)); diff --git a/net/minecraft/world/entity/raid/Raid.java b/net/minecraft/world/entity/raid/Raid.java -index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618996cc5bc 100644 +index 2f45befbb50645f1bfb5961ad725f3670ff0d592..190b9f46029ba0a0d69f68db2c56301f4ea21c94 100644 --- a/net/minecraft/world/entity/raid/Raid.java +++ b/net/minecraft/world/entity/raid/Raid.java @@ -325,7 +325,20 @@ public class Raid { @@ -30,7 +30,7 @@ index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618 if (flag1) { - this.waveSpawnPos = this.getValidSpawnPos(); + // Luminol Start - Raid revert -+ if (!me.earthme.luminol.config.modules.misc.RaidChangesConfig.pos_revert) { ++ if (!me.earthme.luminol.config.modules.misc.RaidChangesConfig.posRevert) { + this.waveSpawnPos = this.getValidSpawnPos(); + } else { + int n4 = 0; @@ -53,7 +53,7 @@ index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618 - BlockPos blockPos = this.waveSpawnPos.orElseGet(() -> this.findRandomSpawnPos(20)); + // Luminol Start - Raid revert + BlockPos blockPos; -+ if (!me.earthme.luminol.config.modules.misc.RaidChangesConfig.pos_revert) { ++ if (!me.earthme.luminol.config.modules.misc.RaidChangesConfig.posRevert) { + blockPos = this.waveSpawnPos.orElseGet(() -> this.findRandomSpawnPos(20)); + } else { + blockPos = this.waveSpawnPos.isPresent() ? this.waveSpawnPos.get() : this.findRandomSpawnPos(i, 20); @@ -67,7 +67,7 @@ index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618 } - if (i > 5) { -+ if (i > (me.earthme.luminol.config.modules.misc.RaidChangesConfig.pos_revert ? 3 : 5)) { // Luminol - Raid revert ++ if (i > (me.earthme.luminol.config.modules.misc.RaidChangesConfig.posRevert ? 3 : 5)) { // Luminol - Raid revert org.bukkit.craftbukkit.event.CraftEventFactory.callRaidStopEvent(this, org.bukkit.event.raid.RaidStopEvent.Reason.UNSPAWNABLE); // CraftBukkit this.stop(); break; @@ -94,7 +94,7 @@ index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618 int i3 = this.center.getZ() + Mth.floor(Mth.sin(f2) * 32.0F * f) + this.level.random.nextInt(3) * Mth.floor(f); int height = this.level.getHeight(Heightmap.Types.WORLD_SURFACE, i2, i3); - if (Mth.abs(height - this.center.getY()) <= 96) { -+ if (me.earthme.luminol.config.modules.misc.RaidChangesConfig.height_check || Mth.abs(height - this.center.getY()) <= 96) { // Leaves - Disable height check ++ if (me.earthme.luminol.config.modules.misc.RaidChangesConfig.heightCheck || Mth.abs(height - this.center.getY()) <= 96) { // Leaves - Disable height check mutableBlockPos.set(i2, height, i3); if (!this.level.isVillage(mutableBlockPos) || i <= 7) { int i4 = 10; @@ -126,7 +126,7 @@ index 2f45befbb50645f1bfb5961ad725f3670ff0d592..0d91ae860a5c506c634e88341d958618 return this.addWaveMob(wave, raider, true); } diff --git a/net/minecraft/world/entity/raid/Raider.java b/net/minecraft/world/entity/raid/Raider.java -index 7c385baae81b9a987c0e1e4deb017884600331bc..75a8e0602c249df4b587a454e35f4cd7eab2a25c 100644 +index 7c385baae81b9a987c0e1e4deb017884600331bc..075563d83fadd85191117685fa3b97a9fad14488 100644 --- a/net/minecraft/world/entity/raid/Raider.java +++ b/net/minecraft/world/entity/raid/Raider.java @@ -125,6 +125,43 @@ public abstract class Raider extends PatrollingMonster { @@ -178,7 +178,7 @@ index 7c385baae81b9a987c0e1e4deb017884600331bc..75a8e0602c249df4b587a454e35f4cd7 public boolean hasRaid() { - return this.level() instanceof ServerLevel serverLevel && (this.getCurrentRaid() != null || serverLevel.getRaidAt(this.blockPosition()) != null); -+ return !me.earthme.luminol.config.modules.misc.RaidChangesConfig.self_check && (this.level() instanceof ServerLevel serverLevel && (this.getCurrentRaid() != null || serverLevel.getRaidAt(this.blockPosition()) != null)); // Leaves - Disable raid self check ++ return !me.earthme.luminol.config.modules.misc.RaidChangesConfig.selfCheck && (this.level() instanceof ServerLevel serverLevel && (this.getCurrentRaid() != null || serverLevel.getRaidAt(this.blockPosition()) != null)); // Leaves - Disable raid self check } public boolean hasActiveRaid() { diff --git a/luminol-server/minecraft-patches/features/0015-Add-config-to-verify-signature-only-in-online-mode.patch b/luminol-server/minecraft-patches/features/0016-Add-config-to-verify-signature-only-in-online-mode.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0015-Add-config-to-verify-signature-only-in-online-mode.patch rename to luminol-server/minecraft-patches/features/0016-Add-config-to-verify-signature-only-in-online-mode.patch diff --git a/luminol-server/minecraft-patches/features/0016-Add-configurable-region-format-framework-linear-v2-r.patch b/luminol-server/minecraft-patches/features/0017-Add-configurable-region-format-framework-linear-v2-r.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0016-Add-configurable-region-format-framework-linear-v2-r.patch rename to luminol-server/minecraft-patches/features/0017-Add-configurable-region-format-framework-linear-v2-r.patch diff --git a/luminol-server/minecraft-patches/features/0017-Add-fix-for-off-region-adult-following-ai-behavior.patch b/luminol-server/minecraft-patches/features/0018-Add-fix-for-off-region-adult-following-ai-behavior.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0017-Add-fix-for-off-region-adult-following-ai-behavior.patch rename to luminol-server/minecraft-patches/features/0018-Add-fix-for-off-region-adult-following-ai-behavior.patch diff --git a/luminol-server/minecraft-patches/features/0018-Add-force-the-data-command-to-be-enabled-config.patch b/luminol-server/minecraft-patches/features/0019-Add-force-the-data-command-to-be-enabled-config.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0018-Add-force-the-data-command-to-be-enabled-config.patch rename to luminol-server/minecraft-patches/features/0019-Add-force-the-data-command-to-be-enabled-config.patch diff --git a/luminol-server/minecraft-patches/features/0019-Add-tick-regions-api.patch b/luminol-server/minecraft-patches/features/0020-Add-tick-regions-api.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0019-Add-tick-regions-api.patch rename to luminol-server/minecraft-patches/features/0020-Add-tick-regions-api.patch diff --git a/luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch b/luminol-server/minecraft-patches/features/0021-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0020-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch rename to luminol-server/minecraft-patches/features/0021-Add-tpsbar-with-chunkhot-membar-and-regionbar.patch diff --git a/luminol-server/minecraft-patches/features/0021-Teleport-async-if-entity-was-moving-to-another-regio.patch b/luminol-server/minecraft-patches/features/0022-Teleport-async-if-entity-was-moving-to-another-regio.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0021-Teleport-async-if-entity-was-moving-to-another-regio.patch rename to luminol-server/minecraft-patches/features/0022-Teleport-async-if-entity-was-moving-to-another-regio.patch diff --git a/luminol-server/minecraft-patches/features/0022-Try-fixing-folia-off-region-POI-accessing-issue.patch b/luminol-server/minecraft-patches/features/0023-Try-fixing-folia-off-region-POI-accessing-issue.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0022-Try-fixing-folia-off-region-POI-accessing-issue.patch rename to luminol-server/minecraft-patches/features/0023-Try-fixing-folia-off-region-POI-accessing-issue.patch diff --git a/luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch b/luminol-server/minecraft-patches/features/0024-Correct-player-respawn-place.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0023-Correct-player-respawn-place.patch rename to luminol-server/minecraft-patches/features/0024-Correct-player-respawn-place.patch diff --git a/luminol-server/minecraft-patches/features/0024-Command-IllegalArgumentException-crash-fix.patch b/luminol-server/minecraft-patches/features/0025-Command-IllegalArgumentException-crash-fix.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0024-Command-IllegalArgumentException-crash-fix.patch rename to luminol-server/minecraft-patches/features/0025-Command-IllegalArgumentException-crash-fix.patch diff --git a/luminol-server/minecraft-patches/features/0025-Do-not-search-the-block-out-of-current-region.patch b/luminol-server/minecraft-patches/features/0026-Do-not-search-the-block-out-of-current-region.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0025-Do-not-search-the-block-out-of-current-region.patch rename to luminol-server/minecraft-patches/features/0026-Do-not-search-the-block-out-of-current-region.patch diff --git a/luminol-server/minecraft-patches/features/0026-Force-disable-builtin-spark-plugin.patch b/luminol-server/minecraft-patches/features/0027-Force-disable-builtin-spark-plugin.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0026-Force-disable-builtin-spark-plugin.patch rename to luminol-server/minecraft-patches/features/0027-Force-disable-builtin-spark-plugin.patch diff --git a/luminol-server/minecraft-patches/features/0027-Fix-creative-player-item-pick.patch b/luminol-server/minecraft-patches/features/0028-Fix-creative-player-item-pick.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0027-Fix-creative-player-item-pick.patch rename to luminol-server/minecraft-patches/features/0028-Fix-creative-player-item-pick.patch diff --git a/luminol-server/minecraft-patches/features/0028-Fix-a-series-issue-around-entity-memory-typed-Global.patch b/luminol-server/minecraft-patches/features/0029-Fix-a-series-issue-around-entity-memory-typed-Global.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0028-Fix-a-series-issue-around-entity-memory-typed-Global.patch rename to luminol-server/minecraft-patches/features/0029-Fix-a-series-issue-around-entity-memory-typed-Global.patch diff --git a/luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch b/luminol-server/minecraft-patches/features/0030-Fix-incorrectly-synced-data-after-player-teleportati.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0029-Fix-incorrectly-synced-data-after-player-teleportati.patch rename to luminol-server/minecraft-patches/features/0030-Fix-incorrectly-synced-data-after-player-teleportati.patch diff --git a/luminol-server/minecraft-patches/features/0030-Fix-off-tickregion-sync-teleport.patch b/luminol-server/minecraft-patches/features/0031-Fix-off-tickregion-sync-teleport.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0030-Fix-off-tickregion-sync-teleport.patch rename to luminol-server/minecraft-patches/features/0031-Fix-off-tickregion-sync-teleport.patch diff --git a/luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch b/luminol-server/minecraft-patches/features/0032-Fix-uncorrected-death-check-of-folia.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0031-Fix-uncorrected-death-check-of-folia.patch rename to luminol-server/minecraft-patches/features/0032-Fix-uncorrected-death-check-of-folia.patch diff --git a/luminol-server/minecraft-patches/features/0032-Paper-Hopper-behavior-fix.patch b/luminol-server/minecraft-patches/features/0033-Paper-Hopper-behavior-fix.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0032-Paper-Hopper-behavior-fix.patch rename to luminol-server/minecraft-patches/features/0033-Paper-Hopper-behavior-fix.patch diff --git a/luminol-server/minecraft-patches/features/0033-Paper-Prevent-zombie-reinforcements-loading-chunks.patch b/luminol-server/minecraft-patches/features/0034-Paper-Prevent-zombie-reinforcements-loading-chunks.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0033-Paper-Prevent-zombie-reinforcements-loading-chunks.patch rename to luminol-server/minecraft-patches/features/0034-Paper-Prevent-zombie-reinforcements-loading-chunks.patch diff --git a/luminol-server/minecraft-patches/features/0034-Kaiiju-Don-t-pathfind-outside-region.patch b/luminol-server/minecraft-patches/features/0035-Kaiiju-Don-t-pathfind-outside-region.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0034-Kaiiju-Don-t-pathfind-outside-region.patch rename to luminol-server/minecraft-patches/features/0035-Kaiiju-Don-t-pathfind-outside-region.patch diff --git a/luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch b/luminol-server/minecraft-patches/features/0036-Kaiiju-Entity-tick-and-removal-limiter.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0035-Kaiiju-Entity-tick-and-removal-limiter.patch rename to luminol-server/minecraft-patches/features/0036-Kaiiju-Entity-tick-and-removal-limiter.patch diff --git a/luminol-server/minecraft-patches/features/0036-Kaiiju-Vanilla-end-portal-teleportation.patch b/luminol-server/minecraft-patches/features/0037-Kaiiju-Vanilla-end-portal-teleportation.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0036-Kaiiju-Vanilla-end-portal-teleportation.patch rename to luminol-server/minecraft-patches/features/0037-Kaiiju-Vanilla-end-portal-teleportation.patch diff --git a/luminol-server/minecraft-patches/features/0037-Petal-Reduce-sensor-work.patch b/luminol-server/minecraft-patches/features/0038-Petal-Reduce-sensor-work.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0037-Petal-Reduce-sensor-work.patch rename to luminol-server/minecraft-patches/features/0038-Petal-Reduce-sensor-work.patch diff --git a/luminol-server/minecraft-patches/features/0038-Purpur-Barrels-and-enderchests-6-rows.patch b/luminol-server/minecraft-patches/features/0039-Purpur-Barrels-and-enderchests-6-rows.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0038-Purpur-Barrels-and-enderchests-6-rows.patch rename to luminol-server/minecraft-patches/features/0039-Purpur-Barrels-and-enderchests-6-rows.patch diff --git a/luminol-server/minecraft-patches/features/0039-Purpur-Lobotomize-stuck-villagers.patch b/luminol-server/minecraft-patches/features/0040-Purpur-Lobotomize-stuck-villagers.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0039-Purpur-Lobotomize-stuck-villagers.patch rename to luminol-server/minecraft-patches/features/0040-Purpur-Lobotomize-stuck-villagers.patch diff --git a/luminol-server/minecraft-patches/features/0040-Purpur-Use-alternative-keep-alive.patch b/luminol-server/minecraft-patches/features/0041-Purpur-Use-alternative-keep-alive.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0040-Purpur-Use-alternative-keep-alive.patch rename to luminol-server/minecraft-patches/features/0041-Purpur-Use-alternative-keep-alive.patch diff --git a/luminol-server/minecraft-patches/features/0041-Pufferfish-Cache-climbing-check-for-activation.patch b/luminol-server/minecraft-patches/features/0042-Pufferfish-Cache-climbing-check-for-activation.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0041-Pufferfish-Cache-climbing-check-for-activation.patch rename to luminol-server/minecraft-patches/features/0042-Pufferfish-Cache-climbing-check-for-activation.patch diff --git a/luminol-server/minecraft-patches/features/0042-Pufferfish-Reduce-chunk-loading-lookups.patch b/luminol-server/minecraft-patches/features/0043-Pufferfish-Reduce-chunk-loading-lookups.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0042-Pufferfish-Reduce-chunk-loading-lookups.patch rename to luminol-server/minecraft-patches/features/0043-Pufferfish-Reduce-chunk-loading-lookups.patch diff --git a/luminol-server/minecraft-patches/features/0043-Gale-Faster-chunk-serialization.patch b/luminol-server/minecraft-patches/features/0044-Gale-Faster-chunk-serialization.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0043-Gale-Faster-chunk-serialization.patch rename to luminol-server/minecraft-patches/features/0044-Gale-Faster-chunk-serialization.patch diff --git a/luminol-server/minecraft-patches/features/0044-Gale-Optimize-noise-generation.patch b/luminol-server/minecraft-patches/features/0045-Gale-Optimize-noise-generation.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0044-Gale-Optimize-noise-generation.patch rename to luminol-server/minecraft-patches/features/0045-Gale-Optimize-noise-generation.patch diff --git a/luminol-server/minecraft-patches/features/0045-Gale-Replace-AI-attributes-with-optimized-collection.patch b/luminol-server/minecraft-patches/features/0046-Gale-Replace-AI-attributes-with-optimized-collection.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0045-Gale-Replace-AI-attributes-with-optimized-collection.patch rename to luminol-server/minecraft-patches/features/0046-Gale-Replace-AI-attributes-with-optimized-collection.patch diff --git a/luminol-server/minecraft-patches/features/0046-Gale-Skip-entity-move-if-movement-is-zero.patch b/luminol-server/minecraft-patches/features/0047-Gale-Skip-entity-move-if-movement-is-zero.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0046-Gale-Skip-entity-move-if-movement-is-zero.patch rename to luminol-server/minecraft-patches/features/0047-Gale-Skip-entity-move-if-movement-is-zero.patch diff --git a/luminol-server/minecraft-patches/features/0047-Gale-Use-platform-math-functions.patch b/luminol-server/minecraft-patches/features/0048-Gale-Use-platform-math-functions.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0047-Gale-Use-platform-math-functions.patch rename to luminol-server/minecraft-patches/features/0048-Gale-Use-platform-math-functions.patch diff --git a/luminol-server/minecraft-patches/features/0048-Gale-Variable-entity-wake-up-duration.patch b/luminol-server/minecraft-patches/features/0049-Gale-Variable-entity-wake-up-duration.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0048-Gale-Variable-entity-wake-up-duration.patch rename to luminol-server/minecraft-patches/features/0049-Gale-Variable-entity-wake-up-duration.patch diff --git a/luminol-server/minecraft-patches/features/0049-SparklyPaper-Optimize-canSee-checks.patch b/luminol-server/minecraft-patches/features/0050-SparklyPaper-Optimize-canSee-checks.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0049-SparklyPaper-Optimize-canSee-checks.patch rename to luminol-server/minecraft-patches/features/0050-SparklyPaper-Optimize-canSee-checks.patch diff --git a/luminol-server/minecraft-patches/features/0050-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch b/luminol-server/minecraft-patches/features/0051-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0050-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch rename to luminol-server/minecraft-patches/features/0051-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch diff --git a/luminol-server/minecraft-patches/features/0051-Leaf-Replace-brain-maps-with-optimized-collection.patch b/luminol-server/minecraft-patches/features/0052-Leaf-Replace-brain-maps-with-optimized-collection.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0051-Leaf-Replace-brain-maps-with-optimized-collection.patch rename to luminol-server/minecraft-patches/features/0052-Leaf-Replace-brain-maps-with-optimized-collection.patch diff --git a/luminol-server/minecraft-patches/features/0052-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch b/luminol-server/minecraft-patches/features/0053-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0052-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch rename to luminol-server/minecraft-patches/features/0053-Leaf-Remove-useless-creating-stats-json-bases-on-pla.patch diff --git a/luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch b/luminol-server/minecraft-patches/features/0054-Leaf-Secure-seed-and-matter-seed-command.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0053-Leaf-Secure-seed-and-matter-seed-command.patch rename to luminol-server/minecraft-patches/features/0054-Leaf-Secure-seed-and-matter-seed-command.patch diff --git a/luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch b/luminol-server/minecraft-patches/features/0055-Add-missing-teleportation-apis-for-folia.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0054-Add-missing-teleportation-apis-for-folia.patch rename to luminol-server/minecraft-patches/features/0055-Add-missing-teleportation-apis-for-folia.patch diff --git a/luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch b/luminol-server/minecraft-patches/features/0056-Portal-Behavior-Modifiers.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0055-Portal-Behavior-Modifiers.patch rename to luminol-server/minecraft-patches/features/0056-Portal-Behavior-Modifiers.patch diff --git a/luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch b/luminol-server/minecraft-patches/features/0057-Leaves-Disable-moved-wrongly-threshold.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0056-Leaves-Disable-moved-wrongly-threshold.patch rename to luminol-server/minecraft-patches/features/0057-Leaves-Disable-moved-wrongly-threshold.patch diff --git a/luminol-server/minecraft-patches/features/0057-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch b/luminol-server/minecraft-patches/features/0058-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0057-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch rename to luminol-server/minecraft-patches/features/0058-Leaves-Fix-Incorrect-Collision-Behavior-for-Block-Sh.patch diff --git a/luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch b/luminol-server/minecraft-patches/features/0059-Leaves-Fix-SculkCatalyst-exp-skip.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0058-Leaves-Fix-SculkCatalyst-exp-skip.patch rename to luminol-server/minecraft-patches/features/0059-Leaves-Fix-SculkCatalyst-exp-skip.patch diff --git a/luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch b/luminol-server/minecraft-patches/features/0060-Add-config-to-enable-Cross-Region-Damage-trace.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0059-Add-config-to-enable-Cross-Region-Damage-trace.patch rename to luminol-server/minecraft-patches/features/0060-Add-config-to-enable-Cross-Region-Damage-trace.patch diff --git a/luminol-server/minecraft-patches/features/0060-Add-config-to-enable-Raytracing-tracker.patch b/luminol-server/minecraft-patches/features/0061-Add-config-to-enable-Raytracing-tracker.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0060-Add-config-to-enable-Raytracing-tracker.patch rename to luminol-server/minecraft-patches/features/0061-Add-config-to-enable-Raytracing-tracker.patch diff --git a/luminol-server/minecraft-patches/features/0061-Lithium-Fast-util.patch b/luminol-server/minecraft-patches/features/0062-Lithium-Fast-util.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0061-Lithium-Fast-util.patch rename to luminol-server/minecraft-patches/features/0062-Lithium-Fast-util.patch diff --git a/luminol-server/minecraft-patches/features/0062-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch b/luminol-server/minecraft-patches/features/0063-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch similarity index 100% rename from luminol-server/minecraft-patches/features/0062-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch rename to luminol-server/minecraft-patches/features/0063-Lithium-Skip-unnecessary-calculations-if-player-is-n.patch diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch index 569a26d..e9f2f92 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/DisableEndCrystalCheckConfig.java.patch @@ -21,6 +21,6 @@ + + @Override + public String getBaseName() { -+ return "endCrystal"; ++ return "end_crystal"; + } +} diff --git a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/RaidChangesConfig.java.patch b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/RaidChangesConfig.java.patch index b29c40a..9ed4b8e 100644 --- a/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/RaidChangesConfig.java.patch +++ b/luminol-server/paper-patches/files/src/main/java/me/earthme/luminol/config/modules/misc/RaidChangesConfig.java.patch @@ -31,19 +31,19 @@ + Disable y <= 96 check. + If you enabled revert_274911, this config will useless + and always behavior of enabled""") -+ public static boolean height_check = false; ++ public static boolean heightCheck = false; + + @ConfigInfo(baseName = "skip-self-raid-check", comments = + """ + Disable raid self check\s + --- this config is not old version's function""") -+ public static boolean self_check = false; ++ public static boolean selfCheck = false; + + @ConfigInfo(baseName = "revert-274911", comments = + """ + Revert Old raid's find spawn position logic + --- This revert MC-274911""") -+ public static boolean pos_revert = false; ++ public static boolean posRevert = false; + + @Override + public EnumConfigCategory getCategory() {