diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index 19ec9a14a8..067bf30403 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -107,6 +107,11 @@ class AutoLogicRegister(type): elif not item_name.startswith("__"): if hasattr(CollectionState, item_name): raise Exception(f"Name conflict on Logic Mixin {name} trying to overwrite {item_name}") + + assert callable(function) or "init_mixin" in dct, ( + f"{name} defined class variable {item_name} without also having init_mixin." + ) + setattr(CollectionState, item_name, function) return new_class