Check if player world is null on instance leave.
This commit is contained in:
parent
b3562ed5c7
commit
0b33663f07
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
@ -817,7 +817,8 @@ public class Instance implements IIdentifiable, INamable
|
||||
*/
|
||||
public void ejectPlayer(PlayerInstance player)
|
||||
{
|
||||
if (player.getInstanceWorld().equals(this))
|
||||
final Instance world = player.getInstanceWorld();
|
||||
if ((world != null) && world.equals(this))
|
||||
{
|
||||
final Location loc = _template.getExitLocation(player);
|
||||
if (loc != null)
|
||||
|
Loading…
Reference in New Issue
Block a user