From 082b5e156c922b13c770faf7ebb91bfe69bd5159 Mon Sep 17 00:00:00 2001 From: Sarah Date: Mon, 21 Dec 2015 17:48:17 +0100 Subject: [PATCH] fixing Kit NPEs --- .../game/arcade/game/games/typewars/kits/KitTypeWarsBase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/typewars/kits/KitTypeWarsBase.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/typewars/kits/KitTypeWarsBase.java index f71c2cf8f..3e813d0f9 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/typewars/kits/KitTypeWarsBase.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/typewars/kits/KitTypeWarsBase.java @@ -66,6 +66,9 @@ public abstract class KitTypeWarsBase extends Kit if(!Manager.GetGame().IsLive()) return; + if(!Manager.GetGame().IsPlaying(event.getPlayer())) + return; + if(event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK) return;