Fix serialization of home mount flag

Part of #6
This commit is contained in:
zontreck 2025-06-05 12:41:22 -07:00
parent bd12021575
commit ac8ac62d27
4 changed files with 16 additions and 15 deletions

View file

@ -97,10 +97,11 @@ namespace AriasServerUtils
public PlayerPosition Location { get; set; }
public bool CanHaveMount = false;
public static Home MakeHome(Entity player, string homeName)
public static Home MakeHome(Entity player, string homeName, bool withMount = false)
{
Home home = new Home();
home.Location = PlayerPosition.from(player);
home.CanHaveMount = withMount;
return home;