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