Fix entityhider

This commit is contained in:
Owain van Brakel
2019-07-14 22:58:24 +02:00
parent 77851542d0
commit 935037cd98

View File

@@ -66,6 +66,7 @@ public class EntityHiderPlugin extends Plugin
@Override @Override
protected void startUp() protected void startUp()
{ {
updateConfig();
addSubscriptions(); addSubscriptions();
} }
@@ -75,9 +76,12 @@ public class EntityHiderPlugin extends Plugin
eventBus.subscribe(GameStateChanged.class, this, this::onGameStateChanged); eventBus.subscribe(GameStateChanged.class, this, this::onGameStateChanged);
} }
public void onConfigChanged(ConfigChanged e) public void onConfigChanged(ConfigChanged event)
{ {
updateConfig(); if (event.getGroup().equals("entityhider"))
{
updateConfig();
}
} }
public void onGameStateChanged(GameStateChanged event) public void onGameStateChanged(GameStateChanged event)