If Codacy complains about Line 365 being potentially combinable with Line 363, please kindly tell it to fuck off
This commit is contained in:
Video 2021-07-29 05:54:00 -06:00
parent cc9c07d498
commit 40498c03f4

View File

@ -362,9 +362,7 @@ public class CoreProtectBridge extends FreedomService
} }
else if (event.getAction() == Action.RIGHT_CLICK_BLOCK) else if (event.getAction() == Action.RIGHT_CLICK_BLOCK)
{ {
if (block != null) if (block != null && data.hasInspection())
{
if (data.hasInspection())
{ {
BlockState blockState = block.getRelative(event.getBlockFace()).getState(); BlockState blockState = block.getRelative(event.getBlockFace()).getState();
Block placedBlock = blockState.getBlock(); Block placedBlock = blockState.getBlock();
@ -454,4 +452,3 @@ public class CoreProtectBridge extends FreedomService
} }
} }
} }
}