mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Attempt to fix #592
Should teleport the player before chunks/world are sent to the player
This commit is contained in:
parent
2fbdd46919
commit
9e28700acf
@ -155,7 +155,7 @@ public class TeleportationService implements Reloadable {
|
|||||||
* @param event the event to emit and according to which to teleport
|
* @param event the event to emit and according to which to teleport
|
||||||
*/
|
*/
|
||||||
private void performTeleportation(final Player player, final AbstractTeleportEvent event) {
|
private void performTeleportation(final Player player, final AbstractTeleportEvent event) {
|
||||||
bukkitService.scheduleSyncDelayedTask(new Runnable() {
|
bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
bukkitService.callEvent(event);
|
bukkitService.callEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user