mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix schematic on claim/auto
This commit is contained in:
@ -1301,7 +1301,7 @@ public class Plot {
|
||||
PlotArea plotworld = getArea();
|
||||
if (plotworld.SCHEMATIC_ON_CLAIM) {
|
||||
SchematicHandler.Schematic sch;
|
||||
if (schematic.isEmpty()) {
|
||||
if (schematic == null || schematic.isEmpty()) {
|
||||
sch = SchematicHandler.manager.getSchematic(plotworld.SCHEMATIC_FILE);
|
||||
} else {
|
||||
sch = SchematicHandler.manager.getSchematic(schematic);
|
||||
|
@ -705,7 +705,7 @@ public abstract class SchematicHandler {
|
||||
* @return Map of block location to tag
|
||||
*/
|
||||
public HashMap<BlockLoc, CompoundTag> getTiles() {
|
||||
return this.tiles;
|
||||
return this.tiles == null ? new HashMap<BlockLoc, CompoundTag>() : tiles;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user