Fixed teleporting out of airship.
This commit is contained in:
parent
72835f8d76
commit
dcd32ff519
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user