Skip to content

Commit

Permalink
Added trycatch to MPModCheckManager to fix issues with old MPModChecks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagord committed Sep 7, 2022
1 parent b9778f0 commit 4086376
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion PulsarModLoader/MPModChecks/MPModCheckManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,14 @@ private static MPUserDataBlock GetHostModList(RoomInfo room)
{
if (room.CustomProperties.ContainsKey("modList"))
{
return DeserializeHashlessMPUserData((byte[])room.CustomProperties["modList"]);
try
{
return DeserializeHashlessMPUserData((byte[])room.CustomProperties["modList"]);
}
catch
{

}
}
return new MPUserDataBlock();
}
Expand Down

0 comments on commit 4086376

Please sign in to comment.