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
1c6dfca638
commit
c209ff2e23
4 files changed
+19
-21
No files matched your search
@@ -371,8 +371,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -713,7 +713,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