Skip to content

Commit

Permalink
Fix multiplayer movement. Closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough authored and Cybermaxke committed Jun 27, 2017
1 parent e97bbb7 commit dbd0be5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected void update(EntityProtocolUpdateContext context) {
// Don't send movement messages if the entity
// is a passengers, otherwise glitches will
// rule the world.
if (passenger) {
if (!passenger) {
if (Math.abs(dxu) <= Short.MAX_VALUE && Math.abs(dyu) <= Short.MAX_VALUE && Math.abs(dzu) <= Short.MAX_VALUE) {
if (dirtyRot) {
context.sendToAllExceptSelf(new MessagePlayOutEntityLookAndRelativeMove(entityId,
Expand Down

0 comments on commit dbd0be5

Please sign in to comment.