Multiantag Gamemode (#37783)
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: Southbridge <7013162+southbridge-fur@users.noreply.github.com> Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
This commit is contained in:
@@ -26,6 +26,9 @@ public sealed partial class GroupSelector : EntityTableSelector
|
||||
children.Add(child, child.Weight);
|
||||
}
|
||||
|
||||
if (children.Count == 0)
|
||||
return Array.Empty<EntProtoId>();
|
||||
|
||||
var pick = SharedRandomExtensions.Pick(children, rand);
|
||||
|
||||
return pick.GetSpawns(rand, entMan, proto, ctx);
|
||||
|
||||
Reference in New Issue
Block a user