mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-27 18:59:06 +00:00
Fix wrong blast resistance used in isDestructableBlock
This commit is contained in:
@@ -678,7 +678,7 @@ index 811a5224a02bb3badb1b8d6de370b7166d9f877c..1b8d43cf54999c9a005459bc59d7b5a5
|
||||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
index 3d4a75302d72bdbe47d0efbe08c89401dbe22a87..fdc0a863aaf6fee90cea28966009088a9926cb1b 100644
|
||||
index 3d4a75302d72bdbe47d0efbe08c89401dbe22a87..1e6e9b6709298b611ae2f77720baa9c517d64c09 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
|
||||
@@ -55,14 +55,16 @@ public class Explosion {
|
||||
@@ -812,7 +812,7 @@ index 3d4a75302d72bdbe47d0efbe08c89401dbe22a87..fdc0a863aaf6fee90cea28966009088a
|
||||
+ float fluidRes = state.getFluidState().getExplosionResistance();
|
||||
+
|
||||
+ // This should be better than just checking if we're within a fluid block.
|
||||
+ return Math.max(blockRes, fluidRes) <= power;
|
||||
+ return (Math.max(blockRes, fluidRes) + 0.3f) * 0.3f <= power;
|
||||
+ }
|
||||
+
|
||||
+ protected boolean isRegionUnprotected() {
|
||||
|
||||
Reference in New Issue
Block a user