From 002fa6300ad732e75c12ce8ae2962d4dced3044a Mon Sep 17 00:00:00 2001 From: samme Date: Mon, 29 Jan 2024 09:17:41 -0800 Subject: [PATCH] Improve the warnings in addTilesetImage() --- src/tilemaps/Tilemap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tilemaps/Tilemap.js b/src/tilemaps/Tilemap.js index 1b796e5b0..b70944716 100644 --- a/src/tilemaps/Tilemap.js +++ b/src/tilemaps/Tilemap.js @@ -400,7 +400,7 @@ var Tilemap = new Class({ if (!this.scene.sys.textures.exists(key)) { - console.warn('Invalid Tileset Image: ' + key); + console.warn('Texture key "%s" not found', key); return null; } @@ -410,7 +410,7 @@ var Tilemap = new Class({ if (index === null && this.format === Formats.TILED_JSON) { - console.warn('No data found for Tileset: ' + tilesetName); + console.warn('Tilemap has no tileset "%s". Its tilesets are %o', tilesetName, this.tilesets); return null; }