fix smart equip (#38605)

This commit is contained in:
slarticodefast
2025-06-26 18:17:25 +02:00
committed by GitHub
parent 268b8d1947
commit f0f7d68727

View File

@@ -80,7 +80,7 @@ public sealed class SmartEquipSystem : EntitySystem
}
// early out if we have an item and cant drop it at all
if (hands.ActiveHandId != null && !_hands.CanDropHeld(uid, hands.ActiveHandId))
if (handItem != null && !_hands.CanDropHeld(uid, hands.ActiveHandId))
{
_popup.PopupClient(Loc.GetString("smart-equip-cant-drop"), uid, uid);
return;