Skip to content

Commit

Permalink
refactor: change `PlayerAuthInputPacketProcessor#TELEPORT_ACK_DIFF_TO…
Browse files Browse the repository at this point in the history
…LERANCE` from `public` to `protected`.
  • Loading branch information
smartcmd committed Jan 24, 2025
1 parent 444fe29 commit a9704d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Unless otherwise specified, any version comparison below is the comparison of se
- Server won't crash if failed to load the descriptor of a plugin now. An error message will be print to the console instead.
- Server won't crash if failed to create world generator. Void world generator will be used instead.
- It is not allowed to reset the dimension of player back to null now, and doing such thing will result in an exception.
- Changed `PlayerAuthInputPacketProcessor#TELEPORT_ACK_DIFF_TOLERANCE` from `public` to `protected`.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class PlayerAuthInputPacketProcessor extends PacketProcessor<PlayerAuthIn
// But it doesn't work out the same breaking time as the client when player keep jumping
// It is hard for us to calculate the exact breaking time when player keep jumping
protected static final int BLOCK_BREAKING_TIME_FAULT_TOLERANCE = Integer.MAX_VALUE;
public static final int TELEPORT_ACK_DIFF_TOLERANCE = 1;
protected static final int TELEPORT_ACK_DIFF_TOLERANCE = 1;

protected int blockToBreakX = Integer.MAX_VALUE;
protected int blockToBreakY = Integer.MAX_VALUE;
Expand Down

0 comments on commit a9704d1

Please sign in to comment.