Map editor improvements

This commit is contained in:
2025-01-05 01:43:44 +01:00
parent 097773995f
commit 4a55f47c06
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,9 @@ export default class MapCreateEvent extends BaseEvent {
.setTiles(Array.from({ length: data.height }, () => Array.from({ length: data.width }, () => 'blank_tile')))
.save()
const mapList = await MapRepository.getAll()
const mapRepository = new MapRepository()
const mapList = await mapRepository.getAll()
return callback(mapList)
} catch (error: any) {
this.logger.error('gm:map:create error', error.message)