mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-27 10:57:45 +01:00
fix calling disabled when in error state, fix node creation transversal
This commit is contained in:
parent
2216fa65dc
commit
330ddcfedd
@ -94,6 +94,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
|
||||
Metrics.start(this);
|
||||
} catch (Throwable t) {
|
||||
getLogger().log(Level.SEVERE, "Unexpected error while loading " + getDescription().getName() + ": Disabling plugin!", t);
|
||||
emergencyStop();
|
||||
console.sendMessage(ChatColor.RED + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
return;
|
||||
}
|
||||
|
@ -126,6 +126,8 @@ public class ConfigSection extends MemoryConfiguration {
|
||||
final String node = (i != 0 ? nodePath.append(root.pathChar) : nodePath).append(pathParts[i]).toString();
|
||||
if (!(writeTo.get(node) instanceof ConfigSection)) {
|
||||
writeTo.put(node, travelNode = new ConfigSection(root, travelNode, pathParts[i], useDefault));
|
||||
} else {
|
||||
travelNode = (ConfigSection) writeTo.get(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user