Update libac, deprecate delayed executor
This commit is contained in:
parent
d68fa58bf9
commit
d9113f357c
3 changed files with 5 additions and 5 deletions
|
@ -116,7 +116,6 @@ public class LibZontreck {
|
|||
public void onServerStopping(final ServerStoppingEvent ev)
|
||||
{
|
||||
ALIVE=false;
|
||||
DelayedExecutorService.stop();
|
||||
|
||||
Iterator<Profile> iProfile = PROFILES.values().iterator();
|
||||
while(iProfile.hasNext())
|
||||
|
|
|
@ -52,7 +52,7 @@ public class ForgeEventHandlers {
|
|||
|
||||
MinecraftForge.EVENT_BUS.post(new ProfileLoadedEvent(prof, player, level));
|
||||
|
||||
DelayedExecutorService.getInstance().schedule(new Task("send-msg", true) {
|
||||
Thread tx = new Thread(new Task("send-msg", true) {
|
||||
@Override
|
||||
public void run() {
|
||||
// Check player wallet, then send wallet to client
|
||||
|
@ -61,7 +61,8 @@ public class ForgeEventHandlers {
|
|||
S2CServerAvailable avail = new S2CServerAvailable();
|
||||
avail.send(player);
|
||||
}
|
||||
}, 10);
|
||||
});
|
||||
tx.start();
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
Reference in a new issue