Small cleanup
This commit is contained in:
@@ -137,14 +137,14 @@
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public void remove(Entity.RemovalReason reason, EntityRemoveEvent.Cause eventCaue) {
|
||||
+ public void remove(Entity.RemovalReason reason, EntityRemoveEvent.Cause eventCause) {
|
||||
+ // CraftBukkit end
|
||||
if ((reason == Entity.RemovalReason.KILLED || reason == Entity.RemovalReason.DISCARDED) && this.level() instanceof ServerLevel serverLevel) {
|
||||
this.triggerOnDeathMobEffects(serverLevel, reason);
|
||||
}
|
||||
|
||||
- super.remove(reason);
|
||||
+ super.remove(reason, eventCaue); // CraftBukkit
|
||||
+ super.remove(reason, eventCause); // CraftBukkit
|
||||
this.brain.clearMemories();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user