Adjust interaction ordering & interaction conditions (#6387)
This commit is contained in:
@@ -16,13 +16,10 @@ public sealed partial class CableSystem
|
||||
|
||||
private void OnCablePlacerAfterInteract(EntityUid uid, CablePlacerComponent component, AfterInteractEvent args)
|
||||
{
|
||||
if (args.Handled) return;
|
||||
if (args.Handled || !args.CanReach) return;
|
||||
|
||||
if (component.CablePrototypeId == null) return;
|
||||
|
||||
if (!args.InRangeUnobstructed(ignoreInsideBlocker: true, popup: true))
|
||||
return;
|
||||
|
||||
if(!_mapManager.TryGetGrid(args.ClickLocation.GetGridId(EntityManager), out var grid))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user