mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Possible fix for null PlotWorld
This commit is contained in:
parent
c9c669a8c2
commit
7d25cccf4a
@ -8,7 +8,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<artifactId>PlotSquared</artifactId>
|
||||
<version>2.10.5</version>
|
||||
<version>2.10.6</version>
|
||||
<name>PlotSquared</name>
|
||||
<packaging>jar</packaging>
|
||||
<build>
|
||||
|
@ -31,6 +31,7 @@ import org.bukkit.generator.BlockPopulator;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import com.intellectualcrafters.plot.generator.HybridPlotWorld;
|
||||
import com.intellectualcrafters.plot.listeners.WorldEvents;
|
||||
import com.intellectualcrafters.plot.util.ChunkManager;
|
||||
|
||||
@ -74,6 +75,10 @@ public abstract class PlotGenerator extends ChunkGenerator {
|
||||
this.random.state = h;
|
||||
this.result = new short[16][];
|
||||
PlotWorld plotworld = PlotSquared.getPlotWorld(world.getName());
|
||||
if (plotworld == null) {
|
||||
plotworld = getNewPlotWorld(world.getName());
|
||||
PlotSquared.addPlotWorld(world.getName(), plotworld, getPlotManager());
|
||||
}
|
||||
Biome biome = Biome.valueOf(plotworld.PLOT_BIOME);
|
||||
this.X = cx << 4;
|
||||
this.Z = cz << 4;
|
||||
|
Loading…
Reference in New Issue
Block a user