mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 06:14:45 +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);
|
GameEntity entity = this.getEntities().remove(entityId);
|
||||||
|
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
// Reset entity id and run event
|
// Run event
|
||||||
entity.setEntityId(0);
|
|
||||||
entity.onRemove();
|
entity.onRemove();
|
||||||
// Send packet
|
// Send packet
|
||||||
player.sendPacket(new PacketSceneGroupRefreshScNotify(null, entity));
|
player.sendPacket(new PacketSceneGroupRefreshScNotify(null, entity));
|
||||||
|
// Reset entity id
|
||||||
|
entity.setEntityId(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user