From 5206945b62b05ab3929ffe276a85dfdfe61f2707 Mon Sep 17 00:00:00 2001 From: Vanic Date: Thu, 20 Nov 2025 15:53:41 +0300 Subject: [PATCH] TileSheet: canvases should now be in the `sheets` subdirectory --- mods/CORE/TileSheet/src/TileSheet.lua | 4 ++-- .../Rocks/textures/{ => sheets}/rocks_sheet.png | Bin .../Soils/textures/{ => sheets}/soils_sheet.png | Bin 3 files changed, 2 insertions(+), 2 deletions(-) rename mods/GAME/ITEMS/Rocks/textures/{ => sheets}/rocks_sheet.png (100%) rename mods/GAME/ITEMS/Soils/textures/{ => sheets}/soils_sheet.png (100%) diff --git a/mods/CORE/TileSheet/src/TileSheet.lua b/mods/CORE/TileSheet/src/TileSheet.lua index de9553c..e14a272 100644 --- a/mods/CORE/TileSheet/src/TileSheet.lua +++ b/mods/CORE/TileSheet/src/TileSheet.lua @@ -62,8 +62,8 @@ end ---@return TileSheet function TileSheet:new(image, tileWidth, tileHeight) local modPath = core.get_modpath(core.get_current_modname()) - -- The canvas image must be in `/textures`, otherwise it will not be retrieved. - local width, height = getSizePng(modPath .. '/textures/' .. image) + -- The canvas image must be in `/textures/sheets/`, otherwise it will not be retrieved. + local width, height = getSizePng(modPath .. '/textures/sheets/' .. image) if width % tileWidth ~= 0 or height % tileHeight ~= 0 then error('Tilesheet does not have an integer number of tiles with resolution ' .. tostring(tileWidth) ..' * '.. tostring(tileHeight)) diff --git a/mods/GAME/ITEMS/Rocks/textures/rocks_sheet.png b/mods/GAME/ITEMS/Rocks/textures/sheets/rocks_sheet.png similarity index 100% rename from mods/GAME/ITEMS/Rocks/textures/rocks_sheet.png rename to mods/GAME/ITEMS/Rocks/textures/sheets/rocks_sheet.png diff --git a/mods/GAME/ITEMS/Soils/textures/soils_sheet.png b/mods/GAME/ITEMS/Soils/textures/sheets/soils_sheet.png similarity index 100% rename from mods/GAME/ITEMS/Soils/textures/soils_sheet.png rename to mods/GAME/ITEMS/Soils/textures/sheets/soils_sheet.png