mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-23 16:51:28 +01:00
Fix our Custom PTA not obeying useSafeTeleporter
This commit is contained in:
parent
8c45d0b76a
commit
a0667d49b8
@ -72,7 +72,10 @@ public class MVTravelAgent implements TravelAgent {
|
||||
this.core.log(Level.FINE, "Using Stock TP method. This cannon will have 0 velocity");
|
||||
}
|
||||
MVTeleport teleporter = new MVTeleport(this.core);
|
||||
Location newLoc = teleporter.getSafeLocation(this.player, this.destination);
|
||||
Location newLoc = this.destination.getLocation(this.player);
|
||||
if (this.destination.useSafeTeleporter()) {
|
||||
newLoc = teleporter.getSafeLocation(this.player, this.destination);
|
||||
}
|
||||
if (newLoc == null) {
|
||||
return this.player.getLocation();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user