Fixed log spam problem.
@@ -184,7 +184,10 @@ private void processInput(EntityRef entity, CharacterMovementComponent character
relMove.y += relativeMovement.y;
break;
}
+ // For some reason, Quat4f.rotate is returning NaN for valid inputs. This prevents those NaNs from causing trouble down the line.
+ if (!Float.isNaN(relMove.getX()) && !Float.isNaN(relMove.getY()) && !Float.isNaN(relMove.getZ())) {
entity.send(new CharacterMoveInputEvent(inputSequenceNumber++, lookPitch, lookYaw, relMove, run, jump, time.getGameDeltaInMs()));
+ }
jump = false;
}
