diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/block/GenChunk.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/block/GenChunk.java index 020348ec5..9018a3707 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/block/GenChunk.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/block/GenChunk.java @@ -88,7 +88,7 @@ public class GenChunk extends ScopedLocalBlockQueue { int maxx = Math.max(pos1.getX(), pos2.getX()); int maxy = Math.max(pos1.getY(), pos2.getY()); int maxz = Math.max(pos1.getZ(), pos2.getZ()); - cd.setRegion(minx, miny, minz, maxx, maxy, maxz, block.to(Material.class)); + cd.setRegion(minx, miny, minz, maxx + 1, maxy + 1, maxz + 1, block.to(Material.class)); } @Override public boolean setBiome(int x, int z, String biome) { diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/DelegatePlotAreaManager.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/DelegatePlotAreaManager.java deleted file mode 100644 index 52da1ade0..000000000 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/worlds/DelegatePlotAreaManager.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.github.intellectualsites.plotsquared.plot.object.worlds; - -import com.github.intellectualsites.plotsquared.plot.object.Location; -import com.github.intellectualsites.plotsquared.plot.object.PlotArea; -import com.github.intellectualsites.plotsquared.plot.object.RegionWrapper; - -public class DelegatePlotAreaManager implements PlotAreaManager { - @Override - public PlotArea getApplicablePlotArea(Location location) { - return parent.getApplicablePlotArea(location); - } - - @Override - public PlotArea getPlotArea(Location location) { - return parent.getPlotArea(location); - } - - @Override - public PlotArea getPlotArea(String world, String id) { - return parent.getPlotArea(world, id); - } - - @Override - public PlotArea[] getPlotAreas(String world, RegionWrapper region) { - return parent.getPlotAreas(world, region); - } - - @Override - public PlotArea[] getAllPlotAreas() { - return parent.getAllPlotAreas(); - } - - @Override - public String[] getAllWorlds() { - return parent.getAllWorlds(); - } - - @Override - public void addPlotArea(PlotArea area) { - parent.addPlotArea(area); - } - - @Override - public void removePlotArea(PlotArea area) { - parent.removePlotArea(area); - } - - @Override - public void addWorld(String worldName) { - parent.addWorld(worldName); - } - - @Override - public void removeWorld(String worldName) { - parent.removeWorld(worldName); - } - - private final PlotAreaManager parent; - - public DelegatePlotAreaManager(PlotAreaManager parent) { - this.parent = parent; - } -}