mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-10 10:09:55 +01:00
Fixed npcs not being removed from the players list
This commit is contained in:
parent
94ab6a3886
commit
48f7d478b0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user