This commit is contained in:
boy0001
2015-09-01 08:51:51 +10:00
parent 9accbd5ea7
commit 29da0da8bb
16 changed files with 93 additions and 22 deletions

View File

@ -46,7 +46,7 @@ public class BO3Handler {
return false;
}
String alias = plot.toString();
Location pos1 = plot.getBottom().add(1, 0, 1);
Location pos1 = plot.getBottom();
Location pos2 = plot.getTop();
ClassicPlotWorld cpw = (ClassicPlotWorld) plotworld;
int height = cpw.PLOT_HEIGHT;

View File

@ -1076,7 +1076,7 @@ public class MainUtil {
return false;
}
long start = System.currentTimeMillis();
ChunkManager.manager.clearAllEntities(plot.getBottom().add(1, 0, 1), plot.getTop());
ChunkManager.manager.clearAllEntities(plot.getBottom(), plot.getTop());
if (isDelete) {
removeSign(plot);
}
@ -1200,7 +1200,7 @@ public class MainUtil {
}
public static void setBiome(final Plot plot, final String biome, final Runnable whenDone) {
Location pos1 = plot.getBottom().add(1, 0, 1);
Location pos1 = plot.getBottom();
Location pos2 = plot.getTop();
ChunkManager.chunkTask(pos1, pos2, new RunnableVal<int[]>() {
@Override
@ -1348,7 +1348,11 @@ public class MainUtil {
* @param id
*
* @return Location bottom of mega plot
*
* @deprecated Incorrect offset / legacy / use plot.getBottom()
*
*/
@Deprecated
public static Location getPlotBottomLoc(final String world, PlotId id) {
final Plot plot = PS.get().getPlot(world, id);
if (plot != null) {

View File

@ -164,7 +164,7 @@ public abstract class SchematicHandler {
// Validate dimensions
Location bottom = plot.getBottom();
Location top = plot.getTop();
if (top.getX() - bottom.getX() < WIDTH || top.getZ() - bottom.getZ() < LENGTH || HEIGHT > 256) {
if (top.getX() - bottom.getX() + 1 < WIDTH || top.getZ() - bottom.getZ() + 1 < LENGTH || HEIGHT > 256) {
PS.debug("Schematic is too large");
TaskManager.runTask(whenDone);
return;