Skip to content

Commit 5a56fc4

Browse files
committed
Fix hidden level sets being visible on latest Everest versions
1 parent 50d13a8 commit 5a56fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LobbyHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private static void modLevelSetSwitch(ILContext il) {
321321
// target check: areaData.GetLevelSet() != levelSet
322322
if (cursor.TryGotoNext(MoveType.After,
323323
instr => instr.MatchLdloc(6), // AreaData getting considered
324-
instr => instr.MatchCall(typeof(AreaDataExt), "GetLevelSet"),
324+
instr => instr.MatchCall(typeof(AreaDataExt), "GetLevelSet") || instr.MatchCallvirt<AreaData>("get_LevelSet"),
325325
instr => instr.MatchLdloc(3), // current level set
326326
instr => instr.MatchCall<string>("op_Inequality"))) {
327327

0 commit comments

Comments
 (0)