mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-10 00:31:28 +01:00
Fix for servers with promotion column (mostly tfs 0.3+)
This commit is contained in:
@@ -77,7 +77,15 @@ class Vocations
|
||||
}
|
||||
|
||||
public static function getOriginal(int $id): ?int {
|
||||
return self::$vocationsFrom[$id] ?? null;
|
||||
while ($tmpId = self::$vocationsFrom[$id]) {
|
||||
if ($tmpId == $id) {
|
||||
break;
|
||||
}
|
||||
|
||||
$id = $tmpId;
|
||||
}
|
||||
|
||||
return $id;
|
||||
}
|
||||
|
||||
public static function getBase($includingRook = true): array {
|
||||
|
||||
Reference in New Issue
Block a user