SteamWar/SpigotCore
Archiviert
13
0

Fix Memory Leak2
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-02-23 18:01:17 +01:00
Ursprung 02d756137e
Commit 40d52d2355

Datei anzeigen

@ -197,7 +197,6 @@ public class REntityServer implements Listener {
@EventHandler @EventHandler
public void onQuit(PlayerQuitEvent e) { public void onQuit(PlayerQuitEvent e) {
Player player = e.getPlayer(); Player player = e.getPlayer();
viewDistance.remove(player);
Location location = lastLocation.remove(player); Location location = lastLocation.remove(player);
if(location == null) if(location == null)
return; return;
@ -209,6 +208,7 @@ public class REntityServer implements Listener {
if(playersInChunk.isEmpty()) if(playersInChunk.isEmpty())
players.remove(id); players.remove(id);
}); });
viewDistance.remove(player);
} }
private void onMissing(Set<Player> of, Set<Player> in, Consumer<Consumer<Object>> packetProvider) { private void onMissing(Set<Player> of, Set<Player> in, Consumer<Consumer<Object>> packetProvider) {