Bandaid wire sounds (#31067)

Issue was tools was predicted but wires aren't so this would exclude user from audio.

For now we just do the non-predicted version and I or someone else will fully predict wires later.
This commit is contained in:
metalgearsloth
2024-08-20 05:50:03 +10:00
committed by GitHub
parent a4bbd133b2
commit 14ae5fd428

View File

@@ -725,7 +725,7 @@ public sealed class WiresSystem : SharedWiresSystem
break;
}
Tool.PlayToolSound(toolEntity, tool, user);
Tool.PlayToolSound(toolEntity, tool, null);
if (wire.Action == null || wire.Action.Cut(user, wire))
{
wire.IsCut = true;
@@ -746,7 +746,7 @@ public sealed class WiresSystem : SharedWiresSystem
break;
}
Tool.PlayToolSound(toolEntity, tool, user);
Tool.PlayToolSound(toolEntity, tool, null);
if (wire.Action == null || wire.Action.Mend(user, wire))
{
wire.IsCut = false;