mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: include non-tier1 roots in tank tech tree routes
This commit is contained in:
1 parent
191843f972
commit
fe9b543a75
1 file changed
+1
-1
@@ -26,7 +26,7 @@ export function TechTreeSection({ skeleton }: MaybeSkeletonComponentProps) {
|
||||
function extend(line: Line): Line[] {
|
||||
const root = tankDefinitions.tanks[line.at(-1)!];
|
||||
|
||||
if (root.ancestors === undefined || root.tier === 1) {
|
||||
if (root.ancestors === undefined || root.ancestors.length === 0 || root.tier === 1) {
|
||||
return [line];
|
||||
} else {
|
||||
if (root.ancestors.length === 1 || root.tier === 2) {
|
||||
|
||||
Reference in new issue
Block a user