From 446c4de243071b56b8808a8160bb7b3dbfd6e97c Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 25 Aug 2016 07:28:16 -1000 Subject: [PATCH] Fix dimno parsing only working for negative dimnos --- src/mceditlib/worldeditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mceditlib/worldeditor.py b/src/mceditlib/worldeditor.py index e5002fe..c78ee99 100644 --- a/src/mceditlib/worldeditor.py +++ b/src/mceditlib/worldeditor.py @@ -684,7 +684,7 @@ class WorldEditor(object): if dimName == "": return 0 - matches = re.findall(r'-[0-9]+', dimName) + matches = re.findall(r'-?[0-9]+', dimName) if not len(matches): raise ValueError("Could not parse a dimension number from %s", dimName) return int(matches[-1])