fixing Kit NPEs
This commit is contained in:
parent
ff5761cc1d
commit
082b5e156c
@ -66,6 +66,9 @@ public abstract class KitTypeWarsBase extends Kit
|
|||||||
if(!Manager.GetGame().IsLive())
|
if(!Manager.GetGame().IsLive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(!Manager.GetGame().IsPlaying(event.getPlayer()))
|
||||||
|
return;
|
||||||
|
|
||||||
if(event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK)
|
if(event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user