mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Fix server config directory remaining locked when integrated server is shut down. (#6644)
This commit is contained in:
1 parent
4ce32c3663
commit
29396b6235
4 files changed
+34
-5
No files matched your search
@@ -81,7 +81,7 @@ public class ForgeConfigSpec extends UnmodifiableConfigWrapper<UnmodifiableConfi
|
||||
|
||||
public void setConfig(CommentedConfig config) {
|
||||
this.childConfig = config;
|
||||
if (!isCorrect(config)) {
|
||||
if (config != null && !isCorrect(config)) {
|
||||
String configName = config instanceof FileConfig ? ((FileConfig) config).getNioPath().toString() : config.toString();
|
||||
LogManager.getLogger().warn(CORE, "Configuration file {} is not correct. Correcting", configName);
|
||||
correct(config, (action, path, incorrectValue, correctedValue) ->
|
||||
|
||||
Reference in new issue
Block a user