Run user dispose on another thread.

This commit is contained in:
KHobbits 2014-04-28 23:12:35 +01:00
parent 8bd1a9f3bc
commit 5eb82add06

View File

@ -224,6 +224,18 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
}
public void dispose()
{
ess.runTaskAsynchronously(new Runnable()
{
@Override
public void run()
{
_dispose();
}
});
}
private void _dispose()
{
this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer());
}