mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
Harpies' sound can only be changed by themselves (#3485)
* Harpies' sound can only be changed by themselves (#1978) (cherry picked from commit 61b4d29974e05b5cf366e33cb76489150a6ac8f3) * comment --------- Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,9 @@ public sealed class SwappableInstrumentSystem : EntitySystem
|
||||
if (!TryComp<InstrumentComponent>(uid, out var instrument))
|
||||
return;
|
||||
|
||||
if (component.OnlySetBySelf && uid != args.User) // Frontier: restrict instrument changes
|
||||
return; // Frontier: restrict instrument changes
|
||||
|
||||
var priority = 0;
|
||||
foreach (var entry in component.InstrumentList)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user