File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ def mod_complete(self):
27
27
"""Executes when all mods are loaded"""
28
28
pass
29
29
30
- def loadable_mod (clazz ):
30
+ def loadable_mod (modclass ):
31
31
"""Annotation to add a Mod subclass to the mod list
32
32
33
33
Args:
34
- clazz (Mod): The Mod class
34
+ modclass (Mod): The Mod class
35
35
36
36
Raises:
37
37
Exception: If the given class is not a subclass of Mod
38
38
"""
39
- if not issubclass (clazz , Mod ):
39
+ if not issubclass (modclass , Mod ):
40
40
raise Exception ("Class must be a subclass of Mod" )
41
41
42
- mod = clazz () # Create a new instance of the class
42
+ mod = modclass () # Create a new instance of the class
43
43
mod_name , _ , _ = mod .mod_info () # Get just the mod name
44
44
mod .mod_load () # Load the mod
45
45
modinfo .add_mod (mod_name , mod )
You can’t perform that action at this time.
0 commit comments