Add comments

This commit is contained in:
Jean-Patrick Guerrero 2022-07-01 03:01:31 +02:00
parent 4ccff6621b
commit 32779ab56f
2 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@ i3 = {
max_waypoints = 30,
min_fs_version = 4,
item_btn_size = 1.1,
sprite_resolution = 1024,
sprite_resolution = 256,
drop_bag_on_die = true,
save_interval = 600, -- Player data save interval (in seconds)

View File

@ -45,7 +45,12 @@ local function cache_groups(group, groups)
if def.drawtype and is_cube(def.drawtype) then
texture = get_cube(tiles)
elseif texture then
-- Buggy, it disforms the texture but can handle any sequence
texture = texture:gsub("%^", "\\^"):gsub(":", "\\:") .. "\\^[resize\\:146x146"
--[[ Alternative, it scales a flat texture perfectly but does not
handle correctly mixed sequence like: inv cube -> flat texture -> inv cube ]]
-- px = 112
end
if texture then