Remove always false checks (#31708)
This commit is contained in:
@@ -67,11 +67,6 @@ public sealed partial class CargoSystem
|
|||||||
|
|
||||||
private void OnPalletUIOpen(EntityUid uid, CargoPalletConsoleComponent component, BoundUIOpenedEvent args)
|
private void OnPalletUIOpen(EntityUid uid, CargoPalletConsoleComponent component, BoundUIOpenedEvent args)
|
||||||
{
|
{
|
||||||
var player = args.Actor;
|
|
||||||
|
|
||||||
if (player == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
UpdatePalletConsoleInterface(uid);
|
UpdatePalletConsoleInterface(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,11 +80,6 @@ public sealed partial class CargoSystem
|
|||||||
|
|
||||||
private void OnPalletAppraise(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletAppraiseMessage args)
|
private void OnPalletAppraise(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletAppraiseMessage args)
|
||||||
{
|
{
|
||||||
var player = args.Actor;
|
|
||||||
|
|
||||||
if (player == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
UpdatePalletConsoleInterface(uid);
|
UpdatePalletConsoleInterface(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -313,11 +303,6 @@ public sealed partial class CargoSystem
|
|||||||
|
|
||||||
private void OnPalletSale(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletSellMessage args)
|
private void OnPalletSale(EntityUid uid, CargoPalletConsoleComponent component, CargoPalletSellMessage args)
|
||||||
{
|
{
|
||||||
var player = args.Actor;
|
|
||||||
|
|
||||||
if (player == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var xform = Transform(uid);
|
var xform = Transform(uid);
|
||||||
|
|
||||||
if (xform.GridUid is not EntityUid gridUid)
|
if (xform.GridUid is not EntityUid gridUid)
|
||||||
|
|||||||
@@ -387,11 +387,7 @@ public sealed class WiresSystem : SharedWiresSystem
|
|||||||
|
|
||||||
private void OnWiresActionMessage(EntityUid uid, WiresComponent component, WiresActionMessage args)
|
private void OnWiresActionMessage(EntityUid uid, WiresComponent component, WiresActionMessage args)
|
||||||
{
|
{
|
||||||
if (args.Actor == null)
|
var player = args.Actor;
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var player = (EntityUid) args.Actor;
|
|
||||||
|
|
||||||
if (!EntityManager.TryGetComponent(player, out HandsComponent? handsComponent))
|
if (!EntityManager.TryGetComponent(player, out HandsComponent? handsComponent))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user