Actually reload config when it changes on disk. Closes #5541 and #5959

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-08-04 22:37:43 -04:00
parent 1af7b7603d
commit 81ec8b99ac
No known key found for this signature in database
GPG key ID: 8EB3DF749553B1B7

View file

@ -90,6 +90,7 @@ public class ConfigFileTypeHandler {
public void run() {
// Force the regular classloader onto the special thread
Thread.currentThread().setContextClassLoader(realClassLoader);
this.commentedFileConfig.load();
LOGGER.debug(CONFIG, "Config file {} changed, sending notifies", this.modConfig.getFileName());
this.modConfig.fireEvent(new ModConfig.ConfigReloading(this.modConfig));
}