diff --git a/src/mcedit2/editortools/move.py b/src/mcedit2/editortools/move.py index 801e411..4937e6f 100644 --- a/src/mcedit2/editortools/move.py +++ b/src/mcedit2/editortools/move.py @@ -144,6 +144,9 @@ class MoveTool(EditorTool): # --- Pending imports --- def importDidMove(self, newPoint, oldPoint): + if self.currentImport is None: + return + if newPoint != oldPoint: command = MoveOffsetCommand(oldPoint, newPoint, self.currentImport) self.editorSession.pushCommand(command)