Project

Profile

Help

Revision a5c338e8

Added by Vincent Le Goff almost 4 years ago

Put the macros and triggers in the world itself

View differences:

src/sharp/functions/macro.py
40 40
        """Creates the macro."""
41 41
        key, modifiers = key_code(shortcut)
42 42
        macro = ObjMacro(key, modifiers, action, self.sharp_engine)
43
        self.client.macros.append(macro)
43
        if self.world:
44
            self.world.macros.append(macro)

Also available in: Unified diff