We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7fbafb commit a2a347cCopy full SHA for a2a347c
Runtime/Nodes/Lamps/LampSequenceUnit.cs
@@ -144,9 +144,11 @@ private ControlOutput Process(Flow flow)
144
foreach (var input in multiInputs) {
145
var lampId = flow.GetValue<string>(input);
146
147
- var mapping = Player.LampMapping.FirstOrDefault(l => l.Id == lampId);
148
- if (mapping != null) {
149
- UpdateLightComponentCache(mapping.Device, lampId);
+ var mappingList = Player.LampMapping.Where(l => l.Id == lampId);
+ if (mappingList.Any()) {
+ foreach (var mapping in mappingList) {
150
+ UpdateLightComponentCache(mapping.Device, lampId);
151
+ }
152
}
153
else {
154
Debug.LogError($"Unknown lamp ID {lampId}.");
0 commit comments