mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix schematic on claim/auto
This commit is contained in:
parent
1f32707ec2
commit
fab60a0d53
@ -41,8 +41,10 @@ public class GenChunk extends PlotChunk<Chunk> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBiome(int x, int z, int biome) {
|
public void setBiome(int x, int z, int biome) {
|
||||||
|
if (this.grid != null) {
|
||||||
this.grid.setBiome(x, z, this.biomes[biome]);
|
this.grid.setBiome(x, z, this.biomes[biome]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setBiome(int x, int z, Biome biome) {
|
public void setBiome(int x, int z, Biome biome) {
|
||||||
if (this.grid != null) {
|
if (this.grid != null) {
|
||||||
|
@ -1301,7 +1301,7 @@ public class Plot {
|
|||||||
PlotArea plotworld = getArea();
|
PlotArea plotworld = getArea();
|
||||||
if (plotworld.SCHEMATIC_ON_CLAIM) {
|
if (plotworld.SCHEMATIC_ON_CLAIM) {
|
||||||
SchematicHandler.Schematic sch;
|
SchematicHandler.Schematic sch;
|
||||||
if (schematic.isEmpty()) {
|
if (schematic == null || schematic.isEmpty()) {
|
||||||
sch = SchematicHandler.manager.getSchematic(plotworld.SCHEMATIC_FILE);
|
sch = SchematicHandler.manager.getSchematic(plotworld.SCHEMATIC_FILE);
|
||||||
} else {
|
} else {
|
||||||
sch = SchematicHandler.manager.getSchematic(schematic);
|
sch = SchematicHandler.manager.getSchematic(schematic);
|
||||||
|
@ -705,7 +705,7 @@ public abstract class SchematicHandler {
|
|||||||
* @return Map of block location to tag
|
* @return Map of block location to tag
|
||||||
*/
|
*/
|
||||||
public HashMap<BlockLoc, CompoundTag> getTiles() {
|
public HashMap<BlockLoc, CompoundTag> getTiles() {
|
||||||
return this.tiles;
|
return this.tiles == null ? new HashMap<BlockLoc, CompoundTag>() : tiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user