From 4086376ff6ec12439d0c2eed7c32658a868c1607 Mon Sep 17 00:00:00 2001 From: DragonFire47 <46509577+DragonFire47@users.noreply.github.com> Date: Tue, 6 Sep 2022 23:40:41 -0700 Subject: [PATCH] Added trycatch to MPModCheckManager to fix issues with old MPModChecks. --- PulsarModLoader/MPModChecks/MPModCheckManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PulsarModLoader/MPModChecks/MPModCheckManager.cs b/PulsarModLoader/MPModChecks/MPModCheckManager.cs index 69f33b2..b0692f8 100644 --- a/PulsarModLoader/MPModChecks/MPModCheckManager.cs +++ b/PulsarModLoader/MPModChecks/MPModCheckManager.cs @@ -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(); }