Fix typo with non-existing xyz function call. Resolve #3337
This commit is contained in:
parent
32cbbd063a
commit
23038be08f
1 changed files with 3 additions and 5 deletions
|
|
@ -18,9 +18,8 @@ Use `evennia xyzgrid help` for usage help.
|
||||||
|
|
||||||
from os.path import join as pathjoin
|
from os.path import join as pathjoin
|
||||||
|
|
||||||
from django.conf import settings
|
|
||||||
|
|
||||||
import evennia
|
import evennia
|
||||||
|
from django.conf import settings
|
||||||
from evennia.contrib.grid.xyzgrid.xyzgrid import get_xyzgrid
|
from evennia.contrib.grid.xyzgrid.xyzgrid import get_xyzgrid
|
||||||
from evennia.utils import ansi
|
from evennia.utils import ansi
|
||||||
|
|
||||||
|
|
@ -390,8 +389,7 @@ def _option_delete(*suboptions):
|
||||||
print("Deleting grid ...")
|
print("Deleting grid ...")
|
||||||
grid.delete()
|
grid.delete()
|
||||||
print(
|
print(
|
||||||
"... done.\nPlease reload the server now; otherwise "
|
"... done.\nPlease reload the server now; otherwise removed rooms may linger in cache."
|
||||||
"removed rooms may linger in cache."
|
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -402,7 +400,7 @@ def _option_delete(*suboptions):
|
||||||
print(f"Mapname/zcoord {zcoord} is not a part of the grid.")
|
print(f"Mapname/zcoord {zcoord} is not a part of the grid.")
|
||||||
err = True
|
err = True
|
||||||
if err:
|
if err:
|
||||||
print("Valid mapnames/zcoords are\n:", "\n ".join(xymap.Z for xymap in grid.all_rooms()))
|
print("Valid mapnames/zcoords are\n:", "\n ".join(xymap.Z for xymap in grid.all_maps()))
|
||||||
return
|
return
|
||||||
repl = input(
|
repl = input(
|
||||||
"This will delete map(s) {', '.join(zcoords)} and wipe all corresponding\n"
|
"This will delete map(s) {', '.join(zcoords)} and wipe all corresponding\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue