From b58877a57b3998fe9bb2e0579acac16bb553e1c4 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 2 Jul 2020 14:51:09 +0100 Subject: [PATCH] Use BlockType not BlockState --- .../bukkit/regions/plotsquared/FaweRegionManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/plotsquared/FaweRegionManager.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/plotsquared/FaweRegionManager.java index 78da2d18b..4660c20e4 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/plotsquared/FaweRegionManager.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/regions/plotsquared/FaweRegionManager.java @@ -29,7 +29,7 @@ import com.sk89q.worldedit.regions.CuboidRegion; import com.sk89q.worldedit.regions.Region; import com.sk89q.worldedit.world.World; import com.sk89q.worldedit.world.biome.BiomeType; -import com.sk89q.worldedit.world.block.BlockState; +import com.sk89q.worldedit.world.block.BlockType; import com.sk89q.worldedit.world.block.BlockTypes; import java.io.File; @@ -98,10 +98,10 @@ public class FaweRegionManager extends RegionManager { EditSession editSession = new EditSessionBuilder(BukkitAdapter.adapt(getWorld(hybridPlotWorld.getWorldName()))).checkMemory(false).fastmode(true).limitUnlimited().changeSetNull().autoQueue(false).build(); if (!hybridPlotWorld.PLOT_SCHEMATIC || !Settings.Schematics.PASTE_ON_TOP) { - final BlockState bedrock; - final BlockState air = BlockTypes.AIR.getDefaultState(); + final BlockType bedrock; + final BlockType air = BlockTypes.AIR; if (hybridPlotWorld.PLOT_BEDROCK) { - bedrock = BlockTypes.BEDROCK.getDefaultState(); + bedrock = BlockTypes.BEDROCK; } else { bedrock = air; }