mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Center plot schematic
This commit is contained in:
parent
abfbeffbb0
commit
8e55860f77
1 changed files with 4 additions and 0 deletions
|
@ -200,10 +200,14 @@ public class HybridPlotWorld extends ClassicPlotWorld {
|
|||
int centerShiftZ = 0;
|
||||
if (l3 < this.PLOT_WIDTH) {
|
||||
centerShiftZ = (this.PLOT_WIDTH - l3) / 2;
|
||||
} else {
|
||||
centerShiftZ = (PLOT_WIDTH + ROAD_WIDTH - l3) / 2;
|
||||
}
|
||||
int centerShiftX = 0;
|
||||
if (w3 < this.PLOT_WIDTH) {
|
||||
centerShiftX = (this.PLOT_WIDTH - w3) / 2;
|
||||
} else {
|
||||
centerShiftX = (PLOT_WIDTH + ROAD_WIDTH - w3) / 2;
|
||||
}
|
||||
|
||||
int startY = minY - PLOT_HEIGHT;
|
||||
|
|
Loading…
Reference in a new issue