@@ -124,7 +124,7 @@ index a8008c7550488be34b51f4280f5569170b1ebd1d..b10cfec6da6dfab89e585c5d4d39ae04
124
124
public String getDescriptionId() {
125
125
return this.getOrCreateDescriptionId();
126
126
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
127
- index 11ce5591f5f7eb487323e2c828218af2461fca09..6d80a68b744fdba2cff436b3b0c5f9db7e283be3 100644
127
+ index 11ce5591f5f7eb487323e2c828218af2461fca09..810bbc05dcfaf0e55804ebb86e89f628ad02e478 100644
128
128
--- a/src/main/java/net/minecraft/world/level/Explosion.java
129
129
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
130
130
@@ -198,6 +198,17 @@ public class Explosion {
@@ -136,7 +136,7 @@ index 11ce5591f5f7eb487323e2c828218af2461fca09..6d80a68b744fdba2cff436b3b0c5f9db
136
136
+ Block block = blockState.getBlock();
137
137
+ me.samsuik.sakura.explosion.durable.DurableMaterial material = this.level.localConfig().config(pos).durableMaterials.get(block);
138
138
+
139
- + if (material != null && material.resistance() >= 0.0f && (this.level.sakuraConfig().cannons.explosion.allowNonTNTBreakingDurableBlocks || this.source instanceof net.minecraft.world.entity.item.PrimedTnt)) {
139
+ + if (material != null && material.resistance() >= 0.0f && (this.level.sakuraConfig().cannons.explosion.allowNonTntBreakingDurableBlocks || this.source instanceof net.minecraft.world.entity.item.PrimedTnt)) {
140
140
+ resistance = Optional.of(material.resistance());
141
141
+ }
142
142
+ }
@@ -150,7 +150,7 @@ index 11ce5591f5f7eb487323e2c828218af2461fca09..6d80a68b744fdba2cff436b3b0c5f9db
150
150
BlockState iblockdata = this.level.getBlockState(blockposition);
151
151
Block block = iblockdata.getBlock();
152
152
+ // Sakura start - durable materials
153
- + if (level.sakuraConfig().cannons.explosion.allowNonTNTBreakingDurableBlocks || source instanceof net.minecraft.world.entity.item.PrimedTnt) {
153
+ + if (level.sakuraConfig().cannons.explosion.allowNonTntBreakingDurableBlocks || source instanceof net.minecraft.world.entity.item.PrimedTnt) {
154
154
+ me.samsuik.sakura.explosion.durable.DurableMaterial material = level.localConfig().config(blockposition).durableMaterials.get(block);
155
155
+
156
156
+ if (material != null && material.durability() >= 0 && !level.durabilityManager.damage(blockposition, material)) {
0 commit comments