mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-01 13:14:43 +02:00
Fixes #577
This commit is contained in:
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user