Skip to content

Commit

Permalink
fix: fix a block breaking warning
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 13, 2024
1 parent ad236c2 commit 0a5246f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ protected void handleBlockAction(EntityPlayer player, List<PlayerBlockActionData
if (isInvalidGameType(player)) continue;
// HACK: 客户端不知道为什么会在BLOCK_PREDICT_DESTROY前发个无意义的BLOCK_CONTINUE_DESTROY,应该是bug,这里忽略掉
if (breakingBlockX == pos.getX() && breakingBlockY == pos.getY() && breakingBlockZ == pos.getZ()) continue;
stopBreak(player);
startBreak(player, pos.getX(), pos.getY(), pos.getZ(), action.getFace());
}
case BLOCK_PREDICT_DESTROY -> {
Expand Down

0 comments on commit 0a5246f

Please sign in to comment.