Skip to content

Commit 4086376

Browse files
committed
Added trycatch to MPModCheckManager to fix issues with old MPModChecks.
1 parent b9778f0 commit 4086376

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎PulsarModLoader/MPModChecks/MPModCheckManager.cs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,14 @@ private static MPUserDataBlock GetHostModList(RoomInfo room)
274274
{
275275
if (room.CustomProperties.ContainsKey("modList"))
276276
{
277-
return DeserializeHashlessMPUserData((byte[])room.CustomProperties["modList"]);
277+
try
278+
{
279+
return DeserializeHashlessMPUserData((byte[])room.CustomProperties["modList"]);
280+
}
281+
catch
282+
{
283+
284+
}
278285
}
279286
return new MPUserDataBlock();
280287
}

0 commit comments

Comments
 (0)