mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-06 23:54:43 +02:00
fix: account for mismatched road-schematic heights (#3854)
This commit is contained in:
@ -298,7 +298,10 @@ public class HybridPlotWorld extends ClassicPlotWorld {
|
|||||||
int roadSchemHeight;
|
int roadSchemHeight;
|
||||||
|
|
||||||
if (schematic1 != null) {
|
if (schematic1 != null) {
|
||||||
roadSchemHeight = schematic1.getClipboard().getDimensions().getY();
|
roadSchemHeight = Math.max(
|
||||||
|
schematic1.getClipboard().getDimensions().getY(),
|
||||||
|
schematic2.getClipboard().getDimensions().getY()
|
||||||
|
);
|
||||||
maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight);
|
maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight);
|
||||||
if (maxSchematicHeight == worldGenHeight) {
|
if (maxSchematicHeight == worldGenHeight) {
|
||||||
SCHEM_Y = getMinGenHeight();
|
SCHEM_Y = getMinGenHeight();
|
||||||
|
Reference in New Issue
Block a user