Archived
0

Destroy entity

This commit is contained in:
2018-05-11 22:42:15 +03:00
parent ecc6d6fb35
commit fa2909b38d
3 changed files with 25 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ public class PacketHandler extends SimpleChannelInboundHandler<CSPacket> {
if (player != null) {
playerManager.leftServer(player);
player.setChannel(null);
playerManager.getBroadcastChannel().writeAndFlush(new DestroyEntityPacket(player.getId()));
}
context.channel().attr(ATTR_PLAYER).set(null);
}