mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 22:04:36 +01:00
Fix monsters not disappearing after battle
This commit is contained in:
@@ -292,11 +292,12 @@ public class Scene {
|
||||
GameEntity entity = this.getEntities().remove(entityId);
|
||||
|
||||
if (entity != null) {
|
||||
// Reset entity id and run event
|
||||
entity.setEntityId(0);
|
||||
// Run event
|
||||
entity.onRemove();
|
||||
// Send packet
|
||||
player.sendPacket(new PacketSceneGroupRefreshScNotify(null, entity));
|
||||
// Reset entity id
|
||||
entity.setEntityId(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user