Fixed npcs not being removed from the players list

This commit is contained in:
OmerBenGera 2021-01-29 14:22:40 +02:00
parent 94ab6a3886
commit 48f7d478b0
12 changed files with 24 additions and 3 deletions

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_10_R1 extends EntityPlayer implements Chunk
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_11_R1 extends EntityPlayer implements Chunk
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -55,6 +55,8 @@ public final class ChunkLoaderNPC_v1_12_R1 extends EntityPlayer implements Chunk
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -58,6 +58,8 @@ public final class ChunkLoaderNPC_v1_13_R1 extends EntityPlayer implements Chunk
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -56,10 +56,9 @@ public final class ChunkLoaderNPC_v1_13_R2 extends EntityPlayer implements Chunk
@Override
public void die() {
WorldServer worldServer = getWorldServer();
worldServer.players.remove(this);
worldServer.getPlayerChunkMap().removePlayer(this);
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -58,6 +58,8 @@ public final class ChunkLoaderNPC_v1_7_R3 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_7_R4 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -58,6 +58,8 @@ public final class ChunkLoaderNPC_v1_8_R1 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_8_R2 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_8_R3 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_9_R1 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override

View File

@ -57,6 +57,8 @@ public final class ChunkLoaderNPC_v1_9_R2 extends EntityPlayer implements ChunkL
@Override
public void die() {
super.die();
world.players.remove(this);
((WorldServer) world).getPlayerChunkMap().removePlayer(this);
}
@Override