diff options
author | Minteck <contact@minteck.org> | 2023-01-02 20:29:01 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-01-02 20:29:01 +0100 |
commit | e72d0adbcd7e69928a1ef380c7a841c160284c68 (patch) | |
tree | 1b9b9c29bb4fd39b6bdf577375bb91be3b9d6be1 /includes/system | |
parent | c9de96328e59816ff4867abf5feab9fb9bf29511 (diff) | |
download | pluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.tar.gz pluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.tar.bz2 pluralconnect-e72d0adbcd7e69928a1ef380c7a841c160284c68.zip |
Update
Diffstat (limited to 'includes/system')
-rw-r--r-- | includes/system/species.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/system/species.inc b/includes/system/species.inc index 41b06fe..8f4368e 100644 --- a/includes/system/species.inc +++ b/includes/system/species.inc @@ -9,11 +9,11 @@ function species(array $members, string $id, string $name) { global $systemID; g $members = [ ...array_map(function ($i) use ($systemID) { $i["_system"] = $systemID; return $i; },array_filter($members, function ($i) use ($systemID) { global $travelling; - return !$travelling[$i['id']]['travelling']; + return !($travelling[$i['id']]['travelling'] || (isset($travelling[$i['id']]['equestria']) && $travelling[$i['id']]['equestria'])); })), ...array_map(function ($i) use ($systemID) { $i["_system"] = $systemID === "gdapd" ? "ynmuc" : "gdapd"; return $i; }, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "ynmuc" : "gdapd") . "/members.json"), true), function ($i) use ($id, $systemID) { global $travelling; - return $travelling[$i['id']]['travelling'] && in_array($id, parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i['id'] . ".json"), true))["species"]); + return $travelling[$i['id']]['travelling'] && !$travelling[$i['id']]['equestria'] && in_array($id, parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i['id'] . ".json"), true))["species"]); })) ]; |