mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
fixes #38
This commit is contained in:
parent
c22a476908
commit
a9c78e491e
@ -319,6 +319,9 @@ public class PlotHelper {
|
||||
final PlotWorld plotworld = PlotMain.getWorldSettings(world);
|
||||
|
||||
manager.setWall(world, plotworld, plot.id, block);
|
||||
if (canSetFast) {
|
||||
SetBlockFast.update(player);
|
||||
}
|
||||
}
|
||||
|
||||
public static void autoMerge(final World world, final Plot plot, final Player player) {
|
||||
|
@ -34,7 +34,7 @@ public class WorldGenerator extends PlotGenerator {
|
||||
/**
|
||||
* plotworld object
|
||||
*/
|
||||
DefaultPlotWorld plotworld;
|
||||
DefaultPlotWorld plotworld = null;
|
||||
/**
|
||||
* Set to static to re-use the same managet for all Default World Generators
|
||||
*/
|
||||
@ -159,16 +159,7 @@ public class WorldGenerator extends PlotGenerator {
|
||||
super(world);
|
||||
|
||||
if (this.plotworld == null) {
|
||||
this.plotworld = new DefaultPlotWorld(world);
|
||||
if (!PlotMain.config.contains("worlds." + world)) {
|
||||
PlotMain.config = YamlConfiguration.loadConfiguration(PlotMain.configFile);
|
||||
PlotMain.config.createSection("worlds." + world);
|
||||
}
|
||||
final ConfigurationSection section = PlotMain.config.getConfigurationSection("worlds." + world);
|
||||
this.plotworld.saveConfiguration(section);
|
||||
this.plotworld.loadDefaultConfiguration(section);
|
||||
this.plotworld.loadConfiguration(section);
|
||||
PlotMain.sendConsoleSenderMessage("&cFailed to load the plotworld settings from the configuration. Attempting to reload it");
|
||||
this.plotworld = (DefaultPlotWorld) PlotMain.getWorldSettings(world);
|
||||
}
|
||||
|
||||
this.plotsize = this.plotworld.PLOT_WIDTH;
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: PlotSquared
|
||||
main: com.intellectualcrafters.plot.PlotMain
|
||||
version: 2.2.2
|
||||
version: 2.2.3
|
||||
load: STARTUP
|
||||
description: >
|
||||
Easy, yet powerful Plot World generation and management.
|
||||
|
Loading…
Reference in New Issue
Block a user