From 9764d4d2267fd5ce865a727999f2894c043e1635 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 28 Mar 2020 10:43:24 +0000 Subject: [PATCH] Actually add biomes to road schematics --- .../plotsquared/plot/generator/HybridPlotWorld.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java index 988403076..ebcb2620d 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java @@ -281,6 +281,11 @@ public class HybridPlotWorld extends ClassicPlotWorld { (short) (shift - x + (oddshift - 1)), id, true, h1); } } + BiomeType biome = blockArrayClipboard1 + .getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); + addOverlayBiome((short) (x - shift), (short) (z + shift + oddshift), biome); + addOverlayBiome((short) (z + shift + oddshift), + (short) (shift - x + (oddshift - 1)), biome); } } @@ -300,6 +305,9 @@ public class HybridPlotWorld extends ClassicPlotWorld { (short) (z - shift), id, false, h2); } } + BiomeType biome = blockArrayClipboard1 + .getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); + addOverlayBiome((short) (x - shift), (short) (z - shift), biome); } } }