mirror of
https://github.com/taoneill/war.git
synced 2025-02-23 23:01:19 +01:00
Closes gh-84. NPE on player_move in lobby when warhub did not exists. Up to v1.2.1.
This commit is contained in:
parent
a3509bd3f4
commit
07ad330083
@ -287,7 +287,7 @@ public class WarPlayerListener extends PlayerListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zone.getLobby().isInWarHubLinkGate(playerLoc)){
|
if (war.getWarHub() != null && zone.getLobby().isInWarHubLinkGate(playerLoc)){
|
||||||
enteredGate = true;
|
enteredGate = true;
|
||||||
dropFromOldTeamIfAny(player);
|
dropFromOldTeamIfAny(player);
|
||||||
event.setFrom(war.getWarHub().getLocation());
|
event.setFrom(war.getWarHub().getLocation());
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: War
|
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.
|
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
|
||||||
author: tommytony
|
author: tommytony
|
||||||
website: war.tommytony.com
|
website: war.tommytony.com
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: War
|
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.
|
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
|
||||||
author: tommytony
|
author: tommytony
|
||||||
website: war.tommytony.com
|
website: war.tommytony.com
|
||||||
|
Loading…
Reference in New Issue
Block a user