Honestly should probably catch this exception. I foresee it occuring very commonly. While it shouldn't halt the server (except in visual studio debug), it's annoying to see.

This commit is contained in:
Hipposgrumm 2024-12-21 20:03:29 -07:00
parent caefae097a
commit dc76612b61

View File

@ -28,7 +28,8 @@ class RacingPMHandler : CommandHandler
cmd.Add("p", p);
NetworkPacket packet = NetworkObject.WrapObject(1, 13, cmd).Serialize();
client.Room.Send(packet);
if (client.Room != null) // Throws an exception in Eat my Dust when the player fires their weapon before fully in the room.
client.Room.Send(packet);
return Task.CompletedTask;
}
}