Add comments
This commit is contained in:
parent
4ccff6621b
commit
32779ab56f
2
init.lua
2
init.lua
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ŝarĝante…
Reference in New Issue