mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Ensure player is dismounted before teleport, fix #496
This commit is contained in:
1 parent
e579b2b05e
commit
2145d6925f
3 files changed
+3
No files matched your search
@@ -136,6 +136,7 @@ public class BukkitUser extends OnlineUser {
|
||||
// Run on the appropriate thread scheduler for this platform
|
||||
plugin.getScheduler().entitySpecificScheduler(player).run(
|
||||
() -> {
|
||||
player.leaveVehicle();
|
||||
if (async || plugin.getScheduler().isUsingFolia()) {
|
||||
PaperLib.teleportAsync(player, bukkitLocation, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user