From e3b0cf4a3d52327bd8e92c03b575d6cc4209aa6c Mon Sep 17 00:00:00 2001 From: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Date: Fri, 13 Jun 2025 16:11:09 +0800 Subject: [PATCH] Fix tripwire with end platform (#542) * Fix tripwire with end platform Co-authored-by: Helvetica Volubi * update --------- Co-authored-by: Helvetica Volubi --- .../features/0124-Tripwire-behavior-modifier.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/leaves-server/minecraft-patches/features/0124-Tripwire-behavior-modifier.patch b/leaves-server/minecraft-patches/features/0124-Tripwire-behavior-modifier.patch index 089308fc..c5dfaba8 100644 --- a/leaves-server/minecraft-patches/features/0124-Tripwire-behavior-modifier.patch +++ b/leaves-server/minecraft-patches/features/0124-Tripwire-behavior-modifier.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Tripwire behavior modifier diff --git a/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java b/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java -index dfe8b815987a0ee385846616e4845428a81f2782..1c13fc84a50afdafcb68a068a2d19404f90fecc5 100644 +index dfe8b815987a0ee385846616e4845428a81f2782..63bbee85d18537760c876cdab5bcac5798bf918b 100644 --- a/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java +++ b/net/minecraft/world/level/levelgen/feature/EndPlatformFeature.java @@ -28,14 +28,40 @@ public class EndPlatformFeature extends Feature { @@ -64,13 +64,12 @@ index dfe8b815987a0ee385846616e4845428a81f2782..1c13fc84a50afdafcb68a068a2d19404 + blockList.placeBlocks(); + } } else { -- blockList.placeBlocks(); + if (dropBlocks) { + blockList.getSnapshotBlocks().forEach((state) -> { + level.destroyBlock(state.getPosition(), !blockList1.contains(state.getPosition()), null); -+ state.update(); + }); + } + blockList.placeBlocks(); } // CraftBukkit end }