mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Fix genChunk setCuboid
This commit is contained in:
parent
f3adeeac0e
commit
3be7511b7c
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user