ejectOnBreak ejects locked slots too (#12933)

This commit is contained in:
Rane
2023-01-04 13:40:32 -05:00
committed by GitHub
parent 040c4525f9
commit 16525082d2

View File

@@ -541,7 +541,10 @@ namespace Content.Shared.Containers.ItemSlots
foreach (var slot in component.Slots.Values)
{
if (slot.EjectOnBreak && slot.HasItem)
{
SetLock(uid, slot, false, component);
TryEject(uid, slot, null, out var _);
}
}
}