9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2026-01-04 15:31:43 +00:00

Fix explosions not updating entity handle

This commit is contained in:
Samsuik
2024-08-10 17:16:54 +01:00
parent 23f6b69d1c
commit 6c80db41ac
8 changed files with 44 additions and 39 deletions

View File

@@ -5,10 +5,10 @@ Subject: [PATCH] Optimise check inside blocks and fluids
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
index 28474fe40e8a606aac3fab719418471f1d21560d..39795ef9752cb0e8061d31ecb3ef6dd6e1a1b744 100644
index 78fc8b0d534d3682697424f4931836d9a26167ea..060f3ebc5823d450f6389044721eea89a56ca85c 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
@@ -1996,18 +1996,37 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
@@ -2000,18 +2000,37 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
BlockPos blockposition1 = BlockPos.containing(axisalignedbb.maxX - offset, axisalignedbb.maxY - offset, axisalignedbb.maxZ - offset);
// Sakura end
@@ -50,7 +50,7 @@ index 28474fe40e8a606aac3fab719418471f1d21560d..39795ef9752cb0e8061d31ecb3ef6dd6
try {
iblockdata.entityInside(this.level(), blockposition_mutableblockposition, this);
@@ -4795,7 +4814,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
@@ -4799,7 +4818,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
}
public boolean updateFluidHeightAndDoFluidPushing(TagKey<Fluid> tag, double speed) {
@@ -59,7 +59,7 @@ index 28474fe40e8a606aac3fab719418471f1d21560d..39795ef9752cb0e8061d31ecb3ef6dd6
return false;
} else {
AABB axisalignedbb = this.getBoundingBox().deflate(0.001D);
@@ -4812,11 +4831,30 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
@@ -4816,11 +4835,30 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
int k1 = 0;
BlockPos.MutableBlockPos blockposition_mutableblockposition = new BlockPos.MutableBlockPos();