mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Fix bug in xyzgrid search parser
This commit is contained in:
parent
d11b3ad834
commit
d388b413ff
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 ("(", ")", ",")):
|
||||
# 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:
|
||||
self.caller.msg("A full (X,Y,Z) coordinate must be given for the destination.")
|
||||
raise InterruptCommand
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue