From 9b1622c1e471ea3bc94dc6889ccc42d91dacf7e9 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 22 Dec 2019 16:52:06 +0100 Subject: [PATCH] Adding missing if condition to effects Signed-off-by: Lixfel --- FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java b/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java index 22a3247..f508ba2 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/kit/Kit.java @@ -58,7 +58,8 @@ public class Kit { if(armor != null) player.getInventory().setArmorContents(armor); player.updateInventory(); - player.addPotionEffects(effects); + if(effects != null) + player.addPotionEffects(effects); } void saveKit(ConfigurationSection section){