Fix genChunk setCuboid

This commit is contained in:
Jesse Boyd 2019-04-01 05:01:32 +11:00
parent f3adeeac0e
commit 3be7511b7c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 1 additions and 64 deletions

View File

@ -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) {

View File

@ -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;
}
}