Release 1.10.5.0 - Autumn Update 2025

This commit is contained in:
Regalis11
2025-09-17 13:44:21 +03:00
parent d13836ce87
commit caa0326cf8
120 changed files with 2584 additions and 635 deletions
@@ -341,6 +341,8 @@ namespace Barotrauma
{
if (component?.GetType() is Type componentType)
{
// Items used via a controller (i.e. turrets) are not selectable but should still be valid targets.
if (!UseController && !component.CanBeSelected) { continue; }
if (componentType == ItemComponentType) { return component; }
if (CanTypeBeSubclass && componentType.IsSubclassOf(ItemComponentType)) { return component; }
}