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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user