Small cleanup

This commit is contained in:
Nassim Jahnke
2024-12-14 21:42:25 +01:00
parent a546b39e58
commit b0f627d7bb
2 changed files with 6 additions and 8 deletions

View File

@@ -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();
}