mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-23 09:08:29 +01:00
Remove use of isDataaseInitialized for MConf and EngineChat
This commit is contained in:
parent
824ee18d53
commit
42fe618b6b
@ -44,10 +44,14 @@ public class MConf extends Entity<MConf>
|
|||||||
{
|
{
|
||||||
super.load(that);
|
super.load(that);
|
||||||
|
|
||||||
if (!Factions.get().isDatabaseInitialized()) return this;
|
// Reactivate EngineChat if currently active.
|
||||||
|
// This way some event listeners are registered with the correct priority based on the config.
|
||||||
EngineChat.get().setActive(false);
|
EngineChat engine = EngineChat.get();
|
||||||
EngineChat.get().setActive(true);
|
if (engine.isActive())
|
||||||
|
{
|
||||||
|
engine.setActive(false);
|
||||||
|
engine.setActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user