Fixed console spam with invalid removal errors
This commit is contained in:
parent
14ff1a2b64
commit
366e0b4c07
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue