mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-01 05:27:36 +01:00
Remove old loading chunk system
This commit is contained in:
parent
9629ad1594
commit
7824131cec
@ -85,10 +85,7 @@ public class ProcessSyncronousPasswordRegister implements Runnable {
|
|||||||
Location loca = plugin.getSpawnLocation(player);
|
Location loca = plugin.getSpawnLocation(player);
|
||||||
RegisterTeleportEvent tpEvent = new RegisterTeleportEvent(player, loca);
|
RegisterTeleportEvent tpEvent = new RegisterTeleportEvent(player, loca);
|
||||||
plugin.getServer().getPluginManager().callEvent(tpEvent);
|
plugin.getServer().getPluginManager().callEvent(tpEvent);
|
||||||
if (!tpEvent.isCancelled()) {
|
if (!tpEvent.isCancelled() && tpEvent.getTo() != null) {
|
||||||
if (!tpEvent.getTo().getWorld().getChunkAt(tpEvent.getTo()).isLoaded()) {
|
|
||||||
tpEvent.getTo().getWorld().getChunkAt(tpEvent.getTo()).load();
|
|
||||||
}
|
|
||||||
player.teleport(tpEvent.getTo());
|
player.teleport(tpEvent.getTo());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user