From 190b3f8308517c0d71770fff3df5694cc1667c37 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 12 Jun 2021 08:59:05 +1000 Subject: [PATCH] SPIGOT-6515: "Un-waterlogging" throws UnsupportedOperationException in some cases By: md_5 --- .../org/bukkit/craftbukkit/util/DummyGeneratorAccess.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java index edc9a7c96f..7a092b12c6 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/DummyGeneratorAccess.java @@ -20,6 +20,7 @@ import net.minecraft.world.level.TickListEmpty; import net.minecraft.world.level.biome.BiomeBase; import net.minecraft.world.level.biome.BiomeManager; import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.entity.TileEntity; import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.border.WorldBorder; @@ -180,7 +181,7 @@ public class DummyGeneratorAccess implements GeneratorAccess { @Override public IBlockData getType(BlockPosition blockposition) { - throw new UnsupportedOperationException("Not supported yet."); + return Blocks.AIR.getBlockData(); // SPIGOT-6515 } @Override @@ -215,6 +216,6 @@ public class DummyGeneratorAccess implements GeneratorAccess { @Override public boolean a(BlockPosition blockposition, boolean flag, Entity entity, int i) { - throw new UnsupportedOperationException("Not supported yet."); + return false; // SPIGOT-6515 } }