forked from SteamWar/SteamWar
Fix Tablist gone after softreload
This commit is contained in:
@@ -55,7 +55,7 @@ public class TablistManager extends BasicListener {
|
|||||||
public TablistManager() {
|
public TablistManager() {
|
||||||
VelocityCore.schedule(this::updateTablist).repeat(1, TimeUnit.SECONDS).schedule();
|
VelocityCore.schedule(this::updateTablist).repeat(1, TimeUnit.SECONDS).schedule();
|
||||||
synchronized (tablists) {
|
synchronized (tablists) {
|
||||||
VelocityCore.getProxy().getAllPlayers().forEach(player -> tablists.put(player, new Tablist(player)));
|
VelocityCore.getProxy().getAllPlayers().forEach(player -> tablists.computeIfAbsent(player, Tablist::new).onServerSwitch());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user