Skip to content

Commit

Permalink
Disallow modifications on static color channels
Browse files Browse the repository at this point in the history
  • Loading branch information
opstic committed Mar 8, 2024
1 parent ec94f4b commit ccfe612
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/level/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,12 @@ pub(crate) fn insert_trigger_data(
} else {
trigger.target_channel = 1;
}
if trigger.target_channel > 999 {
match trigger.target_channel {
1000 | 1001 | 1002 | 1003 | 1004 | 1009 => (),
_ => return Ok(()),
}
}
trigger.target_channel = match object_id {
221 => 1,
717 => 2,
Expand Down

0 comments on commit ccfe612

Please sign in to comment.