Skip to content

Commit

Permalink
ci: Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Jul 26, 2024
1 parent 2e46d09 commit 99e7fe1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: poetry install --no-root --with dev
- name: Run formatter
run: |
poetry run tan --check . --line-length 120 --verbose
poetry run tan --check . --use-tabs --line-length 120 --verbose
- name: Run Linter
run: |
poetry run ruff check .
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@

setup(
ext_modules=cythonize(
["src/chunk/fast.pyx", "src/entity/entity.pyx", "src/physics/collider.pyx", "src/entity/entity_type.pyx", "src/chunk/chunk_common.pyx", "src/chunk/chunk.pyx", "src/chunk/subchunk.pyx"],
[
"src/chunk/fast.pyx",
"src/entity/entity.pyx",
"src/physics/collider.pyx",
"src/entity/entity_type.pyx",
"src/chunk/chunk_common.pyx",
"src/chunk/chunk.pyx",
"src/chunk/subchunk.pyx",
],
compiler_directives={
"language_level": 3,
"profile": True,
Expand Down
10 changes: 6 additions & 4 deletions src/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ def save_chunk(self, chunk_position):
for x in range(CHUNK_WIDTH):
for y in range(CHUNK_HEIGHT):
for z in range(CHUNK_LENGTH):
chunk_blocks[
x * CHUNK_LENGTH * CHUNK_HEIGHT + z * CHUNK_HEIGHT + y
] = self.world.chunks[
chunk_blocks[x * CHUNK_LENGTH * CHUNK_HEIGHT + z * CHUNK_HEIGHT + y] = self.world.chunks[
chunk_position
].blocks[x][y][z]
].blocks[
x
][
y
][z]

# save the chunk file

Expand Down

0 comments on commit 99e7fe1

Please sign in to comment.