mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Fix XYMAP_DATA single import. Resolve #2481.
This commit is contained in:
parent
8b582611cd
commit
dd982e5222
1 changed files with 1 additions and 3 deletions
|
|
@ -121,9 +121,7 @@ class XYZGrid(DefaultScript):
|
|||
"""
|
||||
map_data_list = variable_from_module(module_path, "XYMAP_DATA_LIST")
|
||||
if not map_data_list:
|
||||
map_data_list = variable_from_module(module_path, "XYMAP_DATA")
|
||||
if map_data_list:
|
||||
map_data_list = make_iter(map_data_list)
|
||||
map_data_list = [variable_from_module(module_path, "XYMAP_DATA")]
|
||||
# inject the python path in the map data
|
||||
for mapdata in map_data_list:
|
||||
mapdata['module_path'] = module_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue