Created overload of ItemHasBaseClass that accepts one base type input, faster for 70% of use cases

This commit is contained in:
Chomp
2025-07-25 17:22:59 +01:00
parent 457a135a91
commit 834666a403
2 changed files with 66 additions and 6 deletions
@@ -323,7 +323,7 @@ public class ItemHelper(
/// <returns>is the tpl a descendant</returns>
public bool IsOfBaseclass(MongoId tpl, MongoId baseClassTpl)
{
return itemBaseClassService.ItemHasBaseClass(tpl, [baseClassTpl]);
return itemBaseClassService.ItemHasBaseClass(tpl, baseClassTpl);
}
/// <summary>