fix(flight): show boundary warning only while flying
This commit is contained in:
@@ -112,7 +112,7 @@ final class BaseFlightController implements Runnable {
|
||||
player.setAllowFlight(true);
|
||||
grantedFlight.add(player.getUniqueId());
|
||||
}
|
||||
if (distanceSquared > (double) radius * radius) {
|
||||
if (distanceSquared > (double) radius * radius && player.isFlying()) {
|
||||
if (warned.add(player.getUniqueId())) {
|
||||
player.sendTitle(
|
||||
ChatColor.RED + "Leaving Your Base",
|
||||
|
||||
Reference in New Issue
Block a user