From 9baffd1327fe5501b2aef893059b5bcb5021a249 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Wed, 5 Feb 2025 15:13:39 +0100 Subject: [PATCH] Added title to error notification --- src/events/gameMaster/mapEditor/create.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/gameMaster/mapEditor/create.ts b/src/events/gameMaster/mapEditor/create.ts index 0085419..241d38a 100644 --- a/src/events/gameMaster/mapEditor/create.ts +++ b/src/events/gameMaster/mapEditor/create.ts @@ -19,12 +19,12 @@ export default class MapCreateEvent extends BaseEvent { this.logger.info(`GM ${(await this.getCharacter())!.getId()} has created a new map via map editor.`) if (data.name === '') { - this.socket.emit('notification', { message: 'Map name cannot be empty.' }) + this.socket.emit('notification', { title: 'Error', message: 'Map name cannot be empty.' }) return callback(false) } if (data.width < 1 || data.height < 1) { - this.socket.emit('notification', { message: 'Map width and height must be greater than 0.' }) + this.socket.emit('notification', { title: 'Error', message: 'Map width and height must be greater than 0.' }) return callback(false) }