From 11913bfbe5810092f57b0d36c6a2b5793fcff366 Mon Sep 17 00:00:00 2001 From: MattBDev Date: Sat, 26 Nov 2016 17:53:44 -0500 Subject: [PATCH] Fix compile issue --- .../plotsquared/sponge/util/block/SpongeLocalQueue.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Sponge/src/main/java/com/plotsquared/sponge/util/block/SpongeLocalQueue.java b/Sponge/src/main/java/com/plotsquared/sponge/util/block/SpongeLocalQueue.java index 061baaf51..8be262a71 100644 --- a/Sponge/src/main/java/com/plotsquared/sponge/util/block/SpongeLocalQueue.java +++ b/Sponge/src/main/java/com/plotsquared/sponge/util/block/SpongeLocalQueue.java @@ -60,9 +60,6 @@ public class SpongeLocalQueue extends BasicLocalBlockQueue { public PlotBlock getBlock(int x, int y, int z) { World worldObj = getSpongeWorld(); BlockState block = worldObj.getBlock(x, y, z); - if (block == null) { - return PlotBlock.get(0, 0); - } return SpongeUtil.getPlotBlock(block); } @@ -89,7 +86,7 @@ public class SpongeLocalQueue extends BasicLocalBlockQueue { } } } - if (players.size() == 0) { + if (players.isEmpty()) { return; } HashSet entities = new HashSet<>(); @@ -323,7 +320,7 @@ public class SpongeLocalQueue extends BasicLocalBlockQueue { } public boolean isSolid(int i) { - return i != 0 && Block.getBlockById(i).isVisuallyOpaque(); + return i != 0 && Block.getBlockById(i).isFullyOpaque(Block.getBlockById(i).getDefaultState()); } public int getId(char[][] sections, int x, int y, int z) { @@ -497,7 +494,7 @@ public class SpongeLocalQueue extends BasicLocalBlockQueue { if (last == null || !StringMan.isEqual(last, biomeStr)) { biome = SpongeUtil.getBiome(biomeStr.toUpperCase()); } - worldObj.setBiome(bx, bz, biome); + worldObj.setBiome(bx, 0, bz, biome); } } }