9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2026-01-06 15:41:49 +00:00

Add configurable cannon physics by version

This commit is contained in:
Samsuik
2023-11-21 21:20:57 +00:00
parent 1c16ff8af5
commit 3df4f2a0ce
9 changed files with 1221 additions and 37 deletions

View File

@@ -124,7 +124,7 @@ index a8008c7550488be34b51f4280f5569170b1ebd1d..82a68c0039feea8519477d6542a6e339
public String getDescriptionId() {
return this.getOrCreateDescriptionId();
diff --git a/src/main/java/net/minecraft/world/level/Explosion.java b/src/main/java/net/minecraft/world/level/Explosion.java
index e5a0ba896ae2c1e21514e1156f9ce0457ea2abb5..5de198c444b4d169d2f7c1031933da1ff9e1323e 100644
index 11ce5591f5f7eb487323e2c828218af2461fca09..eb609c7b7e8de093ba1934d35e4085cbb4648a05 100644
--- a/src/main/java/net/minecraft/world/level/Explosion.java
+++ b/src/main/java/net/minecraft/world/level/Explosion.java
@@ -198,6 +198,17 @@ public class Explosion {
@@ -145,7 +145,7 @@ index e5a0ba896ae2c1e21514e1156f9ce0457ea2abb5..5de198c444b4d169d2f7c1031933da1f
ret = new ExplosionBlockCache(
key, pos, blockState, fluidState,
(resistance.orElse(ZERO_RESISTANCE).floatValue() + 0.3f) * 0.3f,
@@ -791,6 +802,14 @@ public class Explosion {
@@ -795,6 +806,14 @@ public class Explosion {
BlockPos blockposition = (BlockPos) objectlistiterator.next();
BlockState iblockdata = this.level.getBlockState(blockposition);
Block block = iblockdata.getBlock();