mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix incorrectly formatted biomes in worlds.yml automagically
This commit is contained in:
parent
8ff4566905
commit
9081a5aff6
@ -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 New Issue
Block a user