mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Fix fake player entity removal
This commit is contained in:
1 parent
6de945a4d2
commit
06f0fe658b
5 files changed
+20
-24
No files matched your search
@@ -367,8 +367,8 @@ public class ReplayServer extends IntegratedServer {
|
||||
super.removeAll();
|
||||
} else {
|
||||
List<ServerPlayer> players = this.getPlayers();
|
||||
for (int i = 0; i < players.size(); ++i) {
|
||||
players.get(i).connection.disconnect(shutdownReason);
|
||||
for (ServerPlayer player : players) {
|
||||
player.connection.disconnect(shutdownReason);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -716,7 +716,7 @@ public class ReplayServer extends IntegratedServer {
|
||||
replayPlayer.lastFirstPersonDataUUID = null;
|
||||
continue;
|
||||
}
|
||||
player.connection.disconnect(Component.empty());
|
||||
player.discard();
|
||||
}
|
||||
List<Entity> entities = new ArrayList<>();
|
||||
for (Entity entity : serverLevel.getAllEntities()) {
|
||||
|
||||
Reference in new issue
Block a user