diff options
| author | Ritabrata Das <[email protected]> | 2025-03-04 15:55:34 +0530 |
|---|---|---|
| committer | Ritabrata Das <[email protected]> | 2025-03-04 15:55:34 +0530 |
| commit | 19ac5fec99c54086f52a17b254e98b37192a9627 (patch) | |
| tree | f3def749b770a9aac2944a48829c06d3de2d63b5 /lib | |
| parent | 4c59fc24b86fda2e317f4fce77eea7a11ff87e30 (diff) | |
Complete crash on ground plugin and some api changes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Aircraft.py | 3 | ||||
| -rw-r--r-- | lib/plugin_manager.py | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Aircraft.py b/lib/Aircraft.py index 5e6e24d..9f162ef 100644 --- a/lib/Aircraft.py +++ b/lib/Aircraft.py @@ -78,9 +78,8 @@ class Aircraft: return None if self.life == -1: self.life=packet.life - + self.prev_life = self.life - self.life = packet.life self.set_position(packet.position) self.set_attitude(packet.atti) diff --git a/lib/plugin_manager.py b/lib/plugin_manager.py index 0a9174c..b96045b 100644 --- a/lib/plugin_manager.py +++ b/lib/plugin_manager.py @@ -7,12 +7,13 @@ PLUGIN_DIR = os.path.join(os.path.dirname(__file__), '../plugins') sys.path.append(PLUGIN_DIR) class PluginManager: - def __init__(self): + def __init__(self, connected_players): self.plugins = {} self.hooks= {} self.commands = {'help': None} self.help_message = "List of Available Commands:\n" self.load_plugins() + self.connected_players = connected_players def load_plugins(self): for plugin in os.listdir(PLUGIN_DIR): |
