Remove unnecessary uses of Exts.IsTraitEnabled
This commit is contained in:
@@ -96,7 +96,7 @@ namespace OpenRA.Mods.Common.Orders
|
||||
|
||||
var cursor = OrderInner(world, mi)
|
||||
.SelectMany(o => o.Subject.TraitsImplementing<Sellable>())
|
||||
.Where(Exts.IsTraitEnabled)
|
||||
.Where(t => !t.IsTraitDisabled)
|
||||
.Select(si => si.Info.Cursor)
|
||||
.FirstOrDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user