Skip to content

Commit

Permalink
Removed unused import and formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Podshot committed Oct 2, 2018
1 parent d54479b commit 259778e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/formats/anvil2/anvil2_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def _decode_long_array(long_array: array_like, size: int) -> ndarray:
::-1 # Undo the bit-shifting that Minecraft does with the palette indices
][:size]


def _encode_long_array(data_array: array_like, palette_size: int) -> ndarray:
"""
Encode an array of data to a long array (from BlockStates or Heightmaps).
Expand Down
2 changes: 0 additions & 2 deletions src/version_definitions/java_1_12/java_1_12.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

from nbt import nbt

from utils.format_utils import (
check_all_exist,
check_one_exists,
Expand Down
2 changes: 0 additions & 2 deletions src/version_definitions/java_1_13/java_1_13.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

from nbt import nbt

from api.world import World

from formats.format_loader import loader
Expand Down
2 changes: 1 addition & 1 deletion tests/test_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def test_longarray(self):
)
)

#Make sure some test are ran in case the data file failed to load or has a wrong format.
# Make sure some test are ran in case the data file failed to load or has a wrong format.
self.assertTrue(test_ran)


Expand Down

0 comments on commit 259778e

Please sign in to comment.