Fixed console spam with invalid removal errors

This commit is contained in:
Unknown 2019-08-17 21:43:52 +02:00 committed by unknown
parent 14ff1a2b64
commit 366e0b4c07

View file

@ -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);