Skip to content

Commit

Permalink
блять ну это хуйня, пусть ифелс будет
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 authored Nov 24, 2024
1 parent f21ece6 commit 8aa57e8
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Content.Server/_CorvaxNext/Light/ToggleableOccluderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,13 @@ private void OnSignalReceived(EntityUid uid, ToggleableOccluderComponent comp, r
{
if (!TryComp<OccluderComponent>(uid, out var occluder))
return;

switch (args.Port)
{
case comp.OffPort:
SetState(uid, false, occluder);
break;

case comp.OnPort:
SetState(uid, true, occluder);
break;

case comp.TogglePort:
ToggleState(uid, occluder);
break;
}

if (args.Port == comp.OffPort)
SetState(uid, false, occluder);
else if (args.Port == comp.OnPort)
SetState(uid, true, occluder);
else if (args.Port == comp.TogglePort)
ToggleState(uid, occluder);
}

public void ToggleState(EntityUid uid, OccluderComponent? occluder = null)
Expand Down

0 comments on commit 8aa57e8

Please sign in to comment.