9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

Fix tripwire with end platform (#542)

* Fix tripwire with end platform

Co-authored-by: Helvetica Volubi <suisuroru@blue-millennium.fun>

* update

---------

Co-authored-by: Helvetica Volubi <suisuroru@blue-millennium.fun>
This commit is contained in:
Lumine1909
2025-06-13 16:11:09 +08:00
committed by GitHub
parent 9d32c5bd3d
commit e3b0cf4a3d

View File

@@ -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<NoneFeatureConfiguration> {
@@ -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
}