SteamWar/SpigotCore
Archiviert
13
0

prevent double filter
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-02-05 19:17:25 +01:00
Ursprung c02d7c2c7d
Commit e39e128aa6

Datei anzeigen

@ -76,8 +76,11 @@ public class REntityServer implements Listener {
} }
public void setCallback(EntityActionListener callback) { public void setCallback(EntityActionListener callback) {
boolean uninitialized = this.callback == null;
this.callback = callback; this.callback = callback;
TinyProtocol.instance.addFilter(useEntity, filter);
if(uninitialized)
TinyProtocol.instance.addFilter(useEntity, filter);
} }
public void addPlayer(Player player) { public void addPlayer(Player player) {