Fix bug in xyzgrid search parser
This commit is contained in:
parent
1ab14d33e4
commit
7c1d11f474
1 changed files with 2 additions and 1 deletions
|
|
@ -149,7 +149,8 @@ class CmdXYZOpen(building.CmdOpen):
|
||||||
|
|
||||||
if all(char in self.rhs for char in ("(", ")", ",")):
|
if all(char in self.rhs for char in ("(", ")", ",")):
|
||||||
# search by (X,Y) or (X,Y,Z)
|
# search by (X,Y) or (X,Y,Z)
|
||||||
X, Y, *Z = self.rhs.split(",", 2)
|
inp = self.rhs.strip("()")
|
||||||
|
X, Y, *Z = inp.split(",", 2)
|
||||||
if not Z:
|
if not Z:
|
||||||
self.caller.msg("A full (X,Y,Z) coordinate must be given for the destination.")
|
self.caller.msg("A full (X,Y,Z) coordinate must be given for the destination.")
|
||||||
raise InterruptCommand
|
raise InterruptCommand
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue