diff --git a/reticulator/dev-notes.md b/reticulator/dev-notes.md index 8b43670..6a6dcf1 100644 --- a/reticulator/dev-notes.md +++ b/reticulator/dev-notes.md @@ -1,7 +1,8 @@ # How to Release - Create all your changes - - Run `generator.py` + - Create + Run Tests + - Set version in `setup.py` - Commit and push everything - Tag the repository: `git tag -a v0.0.9-beta` diff --git a/reticulator/reticulator.py b/reticulator/reticulator.py index 11aacc5..b79b0d4 100644 --- a/reticulator/reticulator.py +++ b/reticulator/reticulator.py @@ -619,10 +619,6 @@ class Command(Resource): def __init__(self, command: str, file: FileResource = None, pack: Pack = None) -> None: super().__init__(file=file, pack=pack) - # Register self into file, for purpose of saving - if file: - self.file.register_resource(self) - # The 'data' is the actual command, which is stored as a string. self._data: str = command @@ -638,7 +634,7 @@ def data(self, data): @property def dirty(self): return self._dirty - + @dirty.setter def dirty(self, dirty): """ @@ -691,7 +687,6 @@ def _save(self): path = os.path.join(self.pack.output_path, self.file_path) create_nested_directory(path) with open(path, 'w', encoding='utf-8') as file: - print(f"SAVING {self.file_name} with {len(self.commands)} commands.") for command in self.commands: file.write(command.data + '\n') diff --git a/setup.py b/setup.py index 87bd1d4..b6896ea 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name = 'reticulator', packages = ['reticulator'], - version = 'v0.0.11-beta', + version = 'v0.0.12-beta', license='MIT', description = 'Reticulator is a pack-access library for Minecraft Bedrock Addons.', author = 'SirLich',