SteamWar/SpigotCore
Archiviert
13
0

Fix REntityServer NPE
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-01-15 18:11:48 +01:00
Ursprung 183fa90825
Commit 745d04845b

Datei anzeigen

@ -146,9 +146,12 @@ public class REntityServer implements Listener {
}
private void onMissing(HashSet<Player> of, HashSet<Player> in, Consumer<Consumer<Object>> packetProvider) {
if(of == null)
return;
for(Player player : of) {
if(!in.contains(player)) {
packetProvider.accept(packet -> TinyProtocol.instance.sendPacket(player, packet)); //TODO multi packet generation
if(in == null || !in.contains(player)) {
packetProvider.accept(packet -> TinyProtocol.instance.sendPacket(player, packet));
}
}
}