The final demoff

This commit is contained in:
ceikry
2021-07-23 00:07:58 -05:00
parent 66b3725654
commit 46a300a900
2 changed files with 1 additions and 9 deletions
@@ -79,7 +79,6 @@ import rs09.game.node.entity.combat.equipment.EquipmentDegrader;
import rs09.game.node.entity.skill.runecrafting.PouchManager;
import rs09.game.node.entity.state.newsys.State;
import rs09.game.node.entity.state.newsys.StateRepository;
import rs09.game.system.SystemLogger;
import rs09.game.world.GameWorld;
import rs09.game.world.repository.Repository;
import rs09.game.world.update.MapChunkRenderer;
@@ -386,7 +385,6 @@ public class Player extends Entity {
* @param force If we should force removal, a player engaged in combat will otherwise remain active until out of combat.
*/
public void clear(boolean force) {
SystemLogger.logInfo("Clearing player...");
/*if (!force && allowRemoval()) {
Repository.getDisconnectionQueue().add(this, true);
return;
@@ -60,13 +60,7 @@ public class IoEventHandler {
ByteBuffer buffer = ByteBuffer.allocate(100_000);
IoSession session = (IoSession) key.attachment();
if (channel.read(buffer) == -1) {
if(session != null){
if(session.getPlayer() != null){
session.getPlayer().clear();
}
//key.cancel();
return;
}
return;
}
buffer.flip();
if (session == null) {