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

Discard before changing entity handle

Fixes crash caused by retiring a bukkit entity multiple times
This commit is contained in:
Samsuik
2024-02-11 14:56:55 +00:00
parent 5dd68faa96
commit 585c9eb091
2 changed files with 6 additions and 6 deletions

View File

@@ -5,11 +5,11 @@ Subject: [PATCH] isPushedByFluid API
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
index 512f4e76c7f3cb255b2153c3f22ac630e7e6553a..bee38695222b9fc7b0235484eaf7afc1dcf63125 100644
index 5eb654f99381edf1043638bbafc1579c7206f460..dd77e2ec655af6ef1556a618aa530abf2325c850 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
@@ -680,6 +680,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
discard();
}
}
// Sakura end
+ public boolean pushedByFluid = true; // Sakura