From ce10d54a9c5d783c0f72d9e4b02de758a27727ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= <sauilitired@gmail.com>
Date: Sat, 11 Apr 2020 13:28:58 +0200
Subject: [PATCH] Don't use legacy IDs to get block types in the hybrid plot
 manager

---
 .../plotsquared/plot/generator/HybridPlotManager.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotManager.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotManager.java
index 9d4ddc06f..aaace2497 100644
--- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotManager.java
+++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotManager.java
@@ -209,13 +209,15 @@ public class HybridPlotManager extends ClassicPlotManager {
         // The component blocks
         final Pattern plotfloor = hybridPlotWorld.TOP_BLOCK.toPattern();
         final Pattern filling = hybridPlotWorld.MAIN_BLOCK.toPattern();
+
         final BlockState bedrock;
+        final BlockState air = BlockTypes.AIR.getDefaultState();
         if (hybridPlotWorld.PLOT_BEDROCK) {
-            bedrock = BlockUtil.get((short) 7, (byte) 0);
+            bedrock = BlockTypes.BEDROCK.getDefaultState();
         } else {
-            bedrock = BlockUtil.get((short) 0, (byte) 0);
+            bedrock = air;
         }
-        final BlockState air = BlockUtil.get((short) 0, (byte) 0);
+
         final BiomeType biome = hybridPlotWorld.getPlotBiome();
         final LocalBlockQueue queue = hybridPlotWorld.getQueue(false);
         ChunkManager.chunkTask(pos1, pos2, new RunnableVal<int[]>() {