mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
better error message
This commit is contained in:
1 parent
49d09bb44f
commit
309094bdf8
1 file changed
+1
-1
@@ -35,6 +35,6 @@ public class ModifierConverter : MessageConverter<BaseModifier>
|
||||
{
|
||||
var player = reader.ReadNetObject<PlayerControl>();
|
||||
var guid = new Guid(reader.ReadBytesAndSize());
|
||||
return player.GetModifier(guid) ?? throw new InvalidOperationException($"Modifier with GUID {guid} not found for player {player.NetId}.");
|
||||
return player.GetModifier(guid) ?? throw new InvalidOperationException($"Modifier with GUID {guid} not found for player with ID: {player.PlayerId}");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user