Fix item toggles where no sound exists (#24807)
Oop (cherry picked from commit bd86447f996e10a1befda16404f0155209efa0e1)
This commit is contained in:
parent
b0dcdcb504
commit
adddd74cff
|
|
@ -134,10 +134,7 @@ public abstract class SharedItemToggleSystem : EntitySystem
|
|||
_light.SetEnabled(uid, true, light);
|
||||
}
|
||||
|
||||
SoundSpecifier? soundToPlay = itemToggle.SoundActivate;
|
||||
|
||||
if (soundToPlay == null)
|
||||
return;
|
||||
var soundToPlay = itemToggle.SoundActivate;
|
||||
|
||||
if (predicted)
|
||||
_audio.PlayPredicted(soundToPlay, uid, user);
|
||||
|
|
|
|||
Loading…
Reference in New Issue