Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #105 from HoverEpic/sneak-fix
Browse files Browse the repository at this point in the history
fix stop sneak
  • Loading branch information
DefinitlyEvil authored Dec 11, 2017
2 parents 9ce437c + 91dadc6 commit e9c7e86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Packet[] translate(UpstreamSession session, PlayerActionPacket packet) {
}
if (packet.action == PlayerActionPacket.ACTION_STOP_SNEAK) {
ClientPlayerStatePacket stat = new ClientPlayerStatePacket(
(int) session.getDataCache().get(CacheKey.PLAYER_EID), PlayerState.START_SNEAKING);
(int) session.getDataCache().get(CacheKey.PLAYER_EID), PlayerState.STOP_SNEAKING);
return new Packet[] { stat };
}
if (packet.action == PlayerActionPacket.ACTION_STOP_SLEEPING) {
Expand Down

0 comments on commit e9c7e86

Please sign in to comment.