Skip to content

Commit

Permalink
fix: allow singular module folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Jul 22, 2024
1 parent 03ef57b commit 8e7de60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bolt/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit 8e7de60

Please sign in to comment.