blob: d249ceca8dbfff27612d83f00f2f6f3693bf437b [file] [log] [blame] [raw]
package net.lightstone.msg.handler;
import net.lightstone.model.Player;
import net.lightstone.model.Rotation;
import net.lightstone.msg.RotationMessage;
import net.lightstone.net.Session;
public final class RotationMessageHandler extends MessageHandler<RotationMessage> {
@Override
public void handle(Session session, Player player, RotationMessage message) {
if (player == null)
return;
player.setRotation(new Rotation(message.getRotation(), message.getPitch()));
}
}