Fix typo with non-existing xyz function call. Resolve #3337

This commit is contained in:
Griatch 2023-11-26 17:21:15 +01:00
parent 32cbbd063a
commit 23038be08f

View file

@ -18,9 +18,8 @@ Use `evennia xyzgrid help` for usage help.
from os.path import join as pathjoin
from django.conf import settings
import evennia
from django.conf import settings
from evennia.contrib.grid.xyzgrid.xyzgrid import get_xyzgrid
from evennia.utils import ansi
@ -390,8 +389,7 @@ def _option_delete(*suboptions):
print("Deleting grid ...")
grid.delete()
print(
"... done.\nPlease reload the server now; otherwise "
"removed rooms may linger in cache."
"... done.\nPlease reload the server now; otherwise removed rooms may linger in cache."
)
return
@ -402,7 +400,7 @@ def _option_delete(*suboptions):
print(f"Mapname/zcoord {zcoord} is not a part of the grid.")
err = True
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
repl = input(
"This will delete map(s) {', '.join(zcoords)} and wipe all corresponding\n"