Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion amulet_map_editor/api/framework/licence_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from amulet_map_editor import lang


_padding = 20


Expand Down
1 change: 0 additions & 1 deletion amulet_map_editor/api/opengl/camera/controllable_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from wx import glcanvas
from .camera import Camera


_SpeedChangedEventType = wx.NewEventType()
EVT_SPEED_CHANGED = wx.PyEventBinder(_SpeedChangedEventType)

Expand Down
1 change: 0 additions & 1 deletion amulet_map_editor/api/opengl/data_types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Tuple
import numpy


TransformationMatrix = numpy.ndarray # 4x4 matrix
CameraLocationType = Tuple[float, float, float]
CameraRotationType = Tuple[float, float]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
OpenGLResourcePack,
)


try:
from .chunk_builder_cy import create_lod0_chunk
except:
Expand Down
2 changes: 1 addition & 1 deletion amulet_map_editor/api/wx/util/mouse_movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def xy(self, xy: Tuple[int, int]):
x, y = map(int, xy)
self._delta_x += self._x - self._start_x
self._delta_y += self._y - self._start_y
(self._start_x, self._start_y) = (self._x, self._y) = self._to_relative(x, y)
self._start_x, self._start_y = (self._x, self._y) = self._to_relative(x, y)
self._warp()

def reset_delta(self):
Expand Down
1 change: 0 additions & 1 deletion amulet_map_editor/programs/edit/api/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

from .selection import SelectionChangeEvent, EVT_SELECTION_CHANGE


DimensionChangeEvent, EVT_DIMENSION_CHANGE = newevent.NewEvent()

# the active tool changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from amulet_map_editor.programs.edit.plugins.operations import stock_plugins


STOCK_PLUGINS_DIR: str = stock_plugins.__path__[0]
STOCK_PLUGINS_NAME: str = stock_plugins.__name__
CUSTOM_PLUGINS_DIR = os.path.join(os.environ["DATA_DIR"], "plugins")
1 change: 0 additions & 1 deletion amulet_map_editor/programs/edit/api/ui/nudge_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
EVT_INPUT_HELD,
)


_MoveActions = {
ACT_MOVE_UP,
ACT_MOVE_DOWN,
Expand Down
6 changes: 2 additions & 4 deletions amulet_map_editor/programs/edit/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,9 @@ def _check_close_world(self) -> bool:
elif response == wx.ID_NO:
return True
elif response == wx.ID_CANCEL:
log.info(
f"""Aborting closing world {
log.info(f"""Aborting closing world {
self._world.level_wrapper.level_name
} because the user pressed cancel."""
)
} because the user pressed cancel.""")
return False
return True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from amulet.api.level import BaseLevel
from amulet.api.data_types import Dimension


# Notes about the operation
# The operation is allowed to yield floats in the range 0 to 1.
# This is used to update the loading bar in the UI. Without this the UI may appear to be not responding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from amulet_map_editor.programs.edit.api.ui.tool import DefaultBaseToolUI
from amulet_map_editor.programs.edit.api.behaviour import StaticSelectionBehaviour


if TYPE_CHECKING:
from amulet_map_editor.programs.edit.api.canvas import EditCanvas

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import os
import versioneer


first_party = {
"amulet-core",
"amulet-nbt",
Expand Down
1 change: 0 additions & 1 deletion tests/test_lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import unittest
from amulet_map_editor.api.lang import lang_dirs


KeyCharacterSet = set(string.ascii_lowercase + string.digits + "_.")


Expand Down