private static void HandleStop(GameSession session) { session.Send(FishingPacket.Stop()); session.FieldManager.BroadcastPacket(GuideObjectPacket.Remove(session.Player.Guide)); session.FieldManager.RemoveGuide(session.Player.Guide); session.Player.Guide = null; // remove guide from player }
private static void HandleStop(GameSession session) { session.Send(BuildModePacket.Use(session.FieldPlayer, false)); session.FieldManager.BroadcastPacket(GuideObjectPacket.Remove(session.Player.Guide)); session.FieldManager.RemoveGuide(session.FieldPlayer.Value.Guide); session.Player.Guide = null; // remove guide from player }
private static void HandleStop(GameSession session) { if (session.Player.Guide == null) { return; } session.FieldManager.BroadcastPacket(BuildModePacket.Use(session.Player.FieldPlayer, BuildModeType.Stop)); session.FieldManager.BroadcastPacket(GuideObjectPacket.Remove(session.Player.Guide)); session.FieldManager.RemoveGuide(session.Player.Guide); session.Player.Guide = null; // remove guide from player }