The final demoff
This commit is contained in:
@@ -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.skill.runecrafting.PouchManager;
|
||||||
import rs09.game.node.entity.state.newsys.State;
|
import rs09.game.node.entity.state.newsys.State;
|
||||||
import rs09.game.node.entity.state.newsys.StateRepository;
|
import rs09.game.node.entity.state.newsys.StateRepository;
|
||||||
import rs09.game.system.SystemLogger;
|
|
||||||
import rs09.game.world.GameWorld;
|
import rs09.game.world.GameWorld;
|
||||||
import rs09.game.world.repository.Repository;
|
import rs09.game.world.repository.Repository;
|
||||||
import rs09.game.world.update.MapChunkRenderer;
|
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.
|
* @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) {
|
public void clear(boolean force) {
|
||||||
SystemLogger.logInfo("Clearing player...");
|
|
||||||
/*if (!force && allowRemoval()) {
|
/*if (!force && allowRemoval()) {
|
||||||
Repository.getDisconnectionQueue().add(this, true);
|
Repository.getDisconnectionQueue().add(this, true);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -60,13 +60,7 @@ public class IoEventHandler {
|
|||||||
ByteBuffer buffer = ByteBuffer.allocate(100_000);
|
ByteBuffer buffer = ByteBuffer.allocate(100_000);
|
||||||
IoSession session = (IoSession) key.attachment();
|
IoSession session = (IoSession) key.attachment();
|
||||||
if (channel.read(buffer) == -1) {
|
if (channel.read(buffer) == -1) {
|
||||||
if(session != null){
|
return;
|
||||||
if(session.getPlayer() != null){
|
|
||||||
session.getPlayer().clear();
|
|
||||||
}
|
|
||||||
//key.cancel();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
buffer.flip();
|
buffer.flip();
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user