9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-26 18:29:07 +00:00

Fix explosions not updating entity handle

This commit is contained in:
Samsuik
2024-08-10 17:16:54 +01:00
parent 6155b8c198
commit 2ea2f24e01
8 changed files with 43 additions and 38 deletions

View File

@@ -229,10 +229,10 @@ index 0000000000000000000000000000000000000000..d15eb10fa203236060b90c5fc1364564
+}
diff --git a/src/main/java/me/samsuik/sakura/explosion/special/TntExplosion.java b/src/main/java/me/samsuik/sakura/explosion/special/TntExplosion.java
new file mode 100644
index 0000000000000000000000000000000000000000..604a2980f89764371e0410665d9be909a3ae2f9a
index 0000000000000000000000000000000000000000..6bcef992766b901db34494a4d359ba335705b689
--- /dev/null
+++ b/src/main/java/me/samsuik/sakura/explosion/special/TntExplosion.java
@@ -0,0 +1,200 @@
@@ -0,0 +1,201 @@
+package me.samsuik.sakura.explosion.special;
+
+import io.papermc.paper.util.maplist.IteratorSafeOrderedReferenceSet;
@@ -388,6 +388,7 @@ index 0000000000000000000000000000000000000000..604a2980f89764371e0410665d9be909
+ break;
+ base += foundEntity.getStacked();
+ foundEntity.discard();
+ foundEntity.updateEntityHandle(this.cause);
+ }
+
+ return base;