Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ protected void register() {
clientPlayer.cancelNextSwingPacket();
clientPlayer.setBlockBreakingInfo(new ClientPlayerEntity.BlockBreakingInfo(position, direction));
// TODO: Handle instant breaking
// TODO: Handle creative mode mining
// TODO: Test breaking fire
// TODO: The java client keeps spamming swing packets while waiting for the block break cooldown. Those need to be cancelled

Expand All @@ -351,6 +350,10 @@ protected void register() {
chunkTracker.handleBlockChange(position, 0, chunkTracker.bedrockAirId());
PacketFactory.sendJavaBlockUpdate(wrapper.user(), position, ProtocolConstants.JAVA_AIR_ID);
}
case CHANGE_DESTROY_DIRECTION -> {
clientPlayer.setBlockBreakingInfo(new ClientPlayerEntity.BlockBreakingInfo(position, direction));
clientPlayer.addAuthInputBlockAction(new ClientPlayerEntity.AuthInputBlockAction(PlayerActionType.ContinueDestroyBlock, position, direction.ordinal()));
}
case SWAP_ITEM_WITH_OFFHAND, STAB -> {
}
default -> throw new IllegalStateException("Unhandled PlayerActionAction: " + action);
Expand Down