From 2a1db8e8f7938f40d4567b2233884b6628bdc182 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Wed, 16 Dec 2020 19:50:05 +0100 Subject: [PATCH] Attempt at fixing #88 --- src/com/massivecraft/factions/integration/lwc/EngineLwc.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/integration/lwc/EngineLwc.java b/src/com/massivecraft/factions/integration/lwc/EngineLwc.java index 5470afdd..67f2a3bb 100644 --- a/src/com/massivecraft/factions/integration/lwc/EngineLwc.java +++ b/src/com/massivecraft/factions/integration/lwc/EngineLwc.java @@ -44,7 +44,10 @@ public class EngineLwc extends Engine } else { - LWC.getInstance().getModuleLoader().removeModules(Factions.get()); + if (LWC.getInstance() != null) + { + LWC.getInstance().getModuleLoader().removeModules(Factions.get()); + } } }