mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-26 20:26:33 +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
@ -1285,8 +1285,8 @@ public abstract class GeneralRegion {
|
||||
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