Skip to content

Commit

Permalink
Fixed clients slinging sneaky superfluous flight control packets. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Feb 22, 2024
1 parent 672807e commit a11f8d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public double getHorizontalMotion() {
public void tick() {
super.tick();

if (pony.isClient() && this.isFlying()) {
if (pony.isClientPlayer() && isFlying() && (pony.getJumpingHeuristic().hasChanged(Heuristic.ONCE) || pony.sneakingChanged())) {
Channel.FLIGHT_CONTROLS_INPUT.sendToServer(new MsgPlayerFlightControlsInput(pony));
}

Expand Down

0 comments on commit a11f8d3

Please sign in to comment.