mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-23 00:39:20 +00:00
Fix destroy waterlogged blocks
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Destroy Waterlogged Blocks
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
index 91c8ceccf29bd25eb59a14a7d60c75a92bb016cb..81284ec481ac6cc82d2b1171d1772c107d1a5a0c 100644
|
||||
index da1dd876b5e64d1f5fefd0701f380ff20b965e0f..099e733940667ed146d7687634bb99855b439616 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
@@ -167,6 +167,11 @@ public class Explosion {
|
||||
@@ -13,7 +13,7 @@ index 91c8ceccf29bd25eb59a14a7d60c75a92bb016cb..81284ec481ac6cc82d2b1171d1772c10
|
||||
return Optional.of(material.resistance());
|
||||
}
|
||||
+ // Sakura start - destroy water logged blocks
|
||||
+ if (!fluidState.isEmpty() && this.level.sakuraConfig().cannons.explosion.destroyWaterloggedBlocks) {
|
||||
+ if (!fluidState.isEmpty() && !blockState.liquid() && this.level.sakuraConfig().cannons.explosion.destroyWaterloggedBlocks) {
|
||||
+ return Optional.of(ZERO_RESISTANCE);
|
||||
+ }
|
||||
+ // Sakura end - destroy water logged blocks
|
||||
|
||||
Reference in New Issue
Block a user