From 38cd77e4870509c56587462041d719268b9dc7fa Mon Sep 17 00:00:00 2001 From: Thijs Wiefferink Date: Fri, 1 Jun 2018 19:54:02 +0200 Subject: [PATCH] Fix compilation error in the import command --- .../java/me/wiefferink/areashop/commands/ImportJob.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AreaShop/src/main/java/me/wiefferink/areashop/commands/ImportJob.java b/AreaShop/src/main/java/me/wiefferink/areashop/commands/ImportJob.java index e226abe..6c195d3 100644 --- a/AreaShop/src/main/java/me/wiefferink/areashop/commands/ImportJob.java +++ b/AreaShop/src/main/java/me/wiefferink/areashop/commands/ImportJob.java @@ -80,7 +80,7 @@ public class ImportJob { messageNoPrefix("import-loadConfigFailed", regionForSaleConfigFile.getAbsolutePath()); regionForSaleConfig = new YamlConfiguration(); } else { - importRegionSettings(regionForSaleConfig, regionForSaleGroup.getSettings(), null); + importRegionSettings(regionForSaleConfig, regionForSaleGroup.getSettings(), null, false); regionForSaleGroup.setSetting("priority", 0); } @@ -150,7 +150,7 @@ public class ImportJob { } else { // RegionGroup with all world settings RegionGroup worldGroup = new RegionGroup(plugin, "RegionForSale-" + worldFolder.getName()); - importRegionSettings(worldConfig, worldGroup.getSettings(), null); + importRegionSettings(worldConfig, worldGroup.getSettings(), null, false); worldGroup.setSetting("priority", 1); worldGroup.addWorld(worldFolder.getName()); plugin.getFileManager().addGroup(regionForSaleGroup); @@ -186,7 +186,7 @@ public class ImportJob { // Import parent region settings into a RegionGroup RegionGroup parentRegionGroup = new RegionGroup(plugin, "RegionForSale-" + worldFolder.getName() + "-" + parentRegionName); - importRegionSettings(parentRegionSection, parentRegionGroup.getSettings(), null); + importRegionSettings(parentRegionSection, parentRegionGroup.getSettings(), null, false); parentRegionGroup.setSetting("priority", 2 + parentRegionSection.getLong("info.priority", 0)); parentRegionGroup.saveRequired();