From 366e0b4c074ece5f581c7110ae1cdd8bce36d34d Mon Sep 17 00:00:00 2001 From: Unknown <lemadec.fr@gmail.com> Date: Sat, 17 Aug 2019 21:43:52 +0200 Subject: [PATCH] Fixed console spam with invalid removal errors --- src/main/java/cr0s/warpdrive/event/JumpSequencer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/event/JumpSequencer.java b/src/main/java/cr0s/warpdrive/event/JumpSequencer.java index 90d3a70c..9e7834aa 100644 --- a/src/main/java/cr0s/warpdrive/event/JumpSequencer.java +++ b/src/main/java/cr0s/warpdrive/event/JumpSequencer.java @@ -1270,7 +1270,8 @@ public class JumpSequencer extends AbstractSequencer { try { final BlockPos blockPos = new BlockPos(jumpBlock.x, jumpBlock.y, jumpBlock.z); boolean isRemoved = FastSetBlockState.setBlockStateNoLight(sourceWorld, blockPos, Blocks.AIR.getDefaultState(), 2); - if (!isRemoved) { + if ( !isRemoved + && sourceWorld.getBlockState(blockPos) != Blocks.AIR.getDefaultState() ) { WarpDrive.logger.info(String.format("Failed to remove %s@%d at (%d %d %d), retrying...", jumpBlock.block, jumpBlock.blockMeta, jumpBlock.x, jumpBlock.y, jumpBlock.z)); isRemoved = FastSetBlockState.setBlockStateNoLight(sourceWorld, blockPos, Blocks.AIR.getDefaultState(), 2);