File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -207,8 +207,9 @@ private void turnOn() {
207
207
level . Session . SetFlag ( flag + "_switch" + id , true ) ;
208
208
}
209
209
210
- if ( SpringCollab2020MapDataProcessor . FlagTouchSwitches [ level . Session . Area . ID ] [ ( int ) level . Session . Area . Mode ] [ flag ]
211
- . All ( touchSwitchID => touchSwitchID . Level == level . Session . Level || level . Session . GetFlag ( flag + "_switch" + touchSwitchID . ID ) )
210
+ if ( ( SpringCollab2020MapDataProcessor . FlagTouchSwitches . Count <= level . Session . Area . ID
211
+ || SpringCollab2020MapDataProcessor . FlagTouchSwitches [ level . Session . Area . ID ] [ ( int ) level . Session . Area . Mode ] [ flag ]
212
+ . All ( touchSwitchID => touchSwitchID . Level == level . Session . Level || level . Session . GetFlag ( flag + "_switch" + touchSwitchID . ID ) ) )
212
213
&& allTouchSwitchesInRoom . All ( touchSwitch => touchSwitch . activated ) ) {
213
214
214
215
// all switches in the room are enabled, and all session flags for switches outside the room are enabled.
You can’t perform that action at this time.
0 commit comments