mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Run user dispose on another thread.
This commit is contained in:
parent
8bd1a9f3bc
commit
5eb82add06
1 changed files with 12 additions and 0 deletions
|
@ -224,6 +224,18 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose()
|
public void dispose()
|
||||||
|
{
|
||||||
|
ess.runTaskAsynchronously(new Runnable()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
_dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void _dispose()
|
||||||
{
|
{
|
||||||
this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer());
|
this.base = new OfflinePlayer(base.getUniqueId(), ess.getServer());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue