Fixed teleporting out of airship.

This commit is contained in:
MobiusDevelopment 2019-11-09 11:02:11 +00:00
parent 72835f8d76
commit dcd32ff519
2 changed files with 4 additions and 4 deletions

View File

@ -141,12 +141,12 @@ public class AirShipInstance extends Vehicle
public void oustPlayer(PlayerInstance player) public void oustPlayer(PlayerInstance player)
{ {
super.oustPlayer(player); super.oustPlayer(player);
final Location loc = getOustLoc(); final Location loc = getOustLoc();
if (player.isOnline()) if (player.isOnline())
{ {
player.broadcastPacket(new ExGetOffAirShip(player, this, loc.getX(), loc.getY(), loc.getZ())); player.broadcastPacket(new ExGetOffAirShip(player, this, loc.getX(), loc.getY(), loc.getZ()));
player.setXYZ(loc.getX(), loc.getY(), loc.getZ()); player.teleToLocation(loc.getX(), loc.getY(), loc.getZ());
player.revalidateZone(true);
} }
else else
{ {

View File

@ -141,12 +141,12 @@ public class AirShipInstance extends Vehicle
public void oustPlayer(PlayerInstance player) public void oustPlayer(PlayerInstance player)
{ {
super.oustPlayer(player); super.oustPlayer(player);
final Location loc = getOustLoc(); final Location loc = getOustLoc();
if (player.isOnline()) if (player.isOnline())
{ {
player.broadcastPacket(new ExGetOffAirShip(player, this, loc.getX(), loc.getY(), loc.getZ())); player.broadcastPacket(new ExGetOffAirShip(player, this, loc.getX(), loc.getY(), loc.getZ()));
player.setXYZ(loc.getX(), loc.getY(), loc.getZ()); player.teleToLocation(loc.getX(), loc.getY(), loc.getZ());
player.revalidateZone(true);
} }
else else
{ {