mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix incorrectly formatted biomes in worlds.yml automagically
This commit is contained in:
parent
8ff4566905
commit
9081a5aff6
1 changed files with 6 additions and 1 deletions
|
@ -262,7 +262,12 @@ public abstract class PlotArea {
|
||||||
this.autoMerge = config.getBoolean("plot.auto_merge");
|
this.autoMerge = config.getBoolean("plot.auto_merge");
|
||||||
this.maxPlotMembers = config.getInt("limits.max-members");
|
this.maxPlotMembers = config.getInt("limits.max-members");
|
||||||
this.allowSigns = config.getBoolean("plot.create_signs");
|
this.allowSigns = config.getBoolean("plot.create_signs");
|
||||||
this.plotBiome = ConfigurationUtil.BIOME.parseString(config.getString("plot.biome"));
|
String biomeString = config.getString("plot.biome");
|
||||||
|
if (!biomeString.startsWith("minecraft:")) {
|
||||||
|
biomeString = "minecraft:" + biomeString;
|
||||||
|
config.set("plot.biome", biomeString.toLowerCase());
|
||||||
|
}
|
||||||
|
this.plotBiome = ConfigurationUtil.BIOME.parseString(biomeString.toLowerCase());
|
||||||
this.schematicOnClaim = config.getBoolean("schematic.on_claim");
|
this.schematicOnClaim = config.getBoolean("schematic.on_claim");
|
||||||
this.schematicFile = config.getString("schematic.file");
|
this.schematicFile = config.getString("schematic.file");
|
||||||
this.schematicClaimSpecify = config.getBoolean("schematic.specify_on_claim");
|
this.schematicClaimSpecify = config.getBoolean("schematic.specify_on_claim");
|
||||||
|
|
Loading…
Reference in a new issue