Closes gh-84. NPE on player_move in lobby when warhub did not exists. Up to v1.2.1.

This commit is contained in:
taoneill 2011-03-15 09:24:37 -04:00
parent a3509bd3f4
commit 07ad330083
3 changed files with 3 additions and 3 deletions

View File

@ -287,7 +287,7 @@ public class WarPlayerListener extends PlayerListener {
}
}
if (zone.getLobby().isInWarHubLinkGate(playerLoc)){
if (war.getWarHub() != null && zone.getLobby().isInWarHubLinkGate(playerLoc)){
enteredGate = true;
dropFromOldTeamIfAny(player);
event.setFrom(war.getWarHub().getLocation());

View File

@ -1,5 +1,5 @@
name: War
version: 1.2 (Bradley)
version: 1.2.1 (Bradley)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com

View File

@ -1,5 +1,5 @@
name: War
version: 1.2 (Bradley)
version: 1.2.1 (Bradley)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com