From 63a0456a9ff6bea15afc24fbcf816c37fc9ec5f1 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 9 May 2021 10:32:58 +0100 Subject: [PATCH] PLUGINS.md: Fix Flags to reference `edmc_data`, not `plug`. --- PLUGINS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index 664ccce7..a438b8fd 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -674,7 +674,7 @@ before returning from this function. import plug def dashboard_entry(cmdr: str, is_beta: bool, entry: Dict[str, Any]): - is_deployed = entry['Flags'] & plug.FlagsHardpointsDeployed + is_deployed = entry['Flags'] & edmc_data.FlagsHardpointsDeployed sys.stderr.write("Hardpoints {}\n".format(is_deployed and "deployed" or "stowed")) ``` @@ -693,7 +693,7 @@ typically about once a second when in orbital flight. For more info on `Status.json`, See the "Status File" section in the Frontier [Journal documentation](https://forums.frontier.co.uk/showthread.php/401661). That includes the available `entry` properties and the list of `"Flags"`. -Refer to the source code of [plug.py](./plug.py) for the list of available +Refer to [edmc_data.py](./edmc_data.py) for the list of available constants. ---