mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 13:46:45 +01:00
Fix offset for min build height in SchematicHandler
This commit is contained in:
parent
d6b2b41c89
commit
b630baef55
@ -329,7 +329,7 @@ public abstract class SchematicHandler {
|
|||||||
if (pw instanceof ClassicPlotWorld) {
|
if (pw instanceof ClassicPlotWorld) {
|
||||||
y_offset_actual = yOffset + pw.getMinBuildHeight() + ((ClassicPlotWorld) pw).PLOT_HEIGHT;
|
y_offset_actual = yOffset + pw.getMinBuildHeight() + ((ClassicPlotWorld) pw).PLOT_HEIGHT;
|
||||||
} else {
|
} else {
|
||||||
y_offset_actual = yOffset + 1 + this.worldUtil
|
y_offset_actual = yOffset + pw.getMinBuildHeight() + this.worldUtil
|
||||||
.getHighestBlockSynchronous(plot.getWorldName(), region.getMinimumPoint().getX() + 1,
|
.getHighestBlockSynchronous(plot.getWorldName(), region.getMinimumPoint().getX() + 1,
|
||||||
region.getMinimumPoint().getZ() + 1
|
region.getMinimumPoint().getZ() + 1
|
||||||
);
|
);
|
||||||
@ -388,8 +388,10 @@ public abstract class SchematicHandler {
|
|||||||
if (actor != null && Settings.QUEUE.NOTIFY_PROGRESS) {
|
if (actor != null && Settings.QUEUE.NOTIFY_PROGRESS) {
|
||||||
queue.addProgressSubscriber(subscriberFactory.createWithActor(actor));
|
queue.addProgressSubscriber(subscriberFactory.createWithActor(actor));
|
||||||
}
|
}
|
||||||
|
if (whenDone != null) {
|
||||||
whenDone.value = true;
|
whenDone.value = true;
|
||||||
queue.setCompleteTask(whenDone);
|
queue.setCompleteTask(whenDone);
|
||||||
|
}
|
||||||
queue.enqueue();
|
queue.enqueue();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user