Skip to content

Commit

Permalink
Fix functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLich committed Jan 9, 2022
1 parent 7a89633 commit 76b0c7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion reticulator/dev-notes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# How to Release

- Create all your changes
- Run `generator.py`
- Create + Run Tests
<!-- - Run `generator.py` -->
- Set version in `setup.py`
- Commit and push everything
- Tag the repository: `git tag -a v0.0.9-beta`
Expand Down
7 changes: 1 addition & 6 deletions reticulator/reticulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -638,7 +634,7 @@ def data(self, data):
@property
def dirty(self):
return self._dirty

@dirty.setter
def dirty(self, dirty):
"""
Expand Down Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 76b0c7f

Please sign in to comment.