Clear cached per-world configurations on reload.

This commit is contained in:
asofold 2018-04-15 18:56:10 +02:00
parent cbfcecf2b4
commit d82fb9c804
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ public class ReloadCommand extends BaseCommand {
// (Magic/TODO)
final WorldDataManager worldDataManager = (WorldDataManager) NCPAPIProvider.getNoCheatPlusAPI().getWorldDataManager();
ConfigManager.init(access, worldDataManager);
worldDataManager.removeCachedConfigs();
if (logManager instanceof INotifyReload) { // TODO: This is a band-aid.
((INotifyReload) logManager).onReload();
}