mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-23 02:35:25 +01:00
Fix a bug with teleporting to signs
If no signs are connected to the region it will now correctly teleport to the location set by '/as settp' instead of always using the default location.
This commit is contained in:
parent
22d214e59d
commit
fb51da84ae
@ -1284,9 +1284,9 @@ public abstract class GeneralRegion {
|
||||
startLocation = signs.get(0).subtract(0.0, 1.0, 0.0);
|
||||
startLocation.setPitch(player.getLocation().getPitch());
|
||||
startLocation.setYaw(player.getLocation().getYaw());
|
||||
}
|
||||
|
||||
} else if(this.hasTeleportLocation()) {
|
||||
}
|
||||
}
|
||||
if(startLocation == null && this.hasTeleportLocation()) {
|
||||
startLocation = getTeleportLocation();
|
||||
}
|
||||
// Set default startLocation if not set
|
||||
|
Loading…
Reference in New Issue
Block a user