mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Fix respawn task console errors
This commit is contained in:
parent
f01a4411a5
commit
1f2791792b
@ -38,11 +38,9 @@ public class RespawnTask extends BukkitRunnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (player.getWorld() == location.getWorld()) {
|
||||
if (player.getLocation().distance(location) > 2) {
|
||||
if (player.getWorld() != location.getWorld() || player.getLocation().distance(location) > 2) {
|
||||
PlayerUtil.secureTeleport(player, location);
|
||||
}
|
||||
}
|
||||
|
||||
DGlobalPlayer dPlayer = DungeonsXL.getInstance().getDPlayers().getByPlayer(player);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user