From 8e7de601a355cd76af46873d6f8db0317f2ecacb Mon Sep 17 00:00:00 2001 From: Valentin Berlier Date: Mon, 22 Jul 2024 03:20:27 +0200 Subject: [PATCH] fix: allow singular module folder --- bolt/module.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bolt/module.py b/bolt/module.py index 681658a..313c601 100644 --- a/bolt/module.py +++ b/bolt/module.py @@ -90,14 +90,20 @@ class SilentCompilationInterrupt(DiagnosticCollection): class Module(TextFile): """Class representing a bolt module.""" - scope: ClassVar[NamespaceFileScope] = ("modules",) + scope: ClassVar[NamespaceFileScope] = { + 0: ("modules",), + 48: ("module",), + } extension: ClassVar[str] = ".bolt" class AssetModule(TextFile): """Class representing a bolt module in a resource pack.""" - scope: ClassVar[NamespaceFileScope] = ("modules",) + scope: ClassVar[NamespaceFileScope] = { + 0: ("modules",), + 34: ("module",), + } extension: ClassVar[str] = ".bolt"