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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user