Adapt to lcdlib 1.03

This commit is contained in:
Joachim Stolberg 2023-08-20 21:46:31 +02:00
parent 2dc3f24f1c
commit d6157087f1
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ function techage.display.display_update(pos, objref)
local text = lcdlib_bugfix(nvm.text)
local texture = lcdlib.make_multiline_texture(
"default", text,
70, 70, NUM_ROWS, "top", "#000")
70, 70, NUM_ROWS, "top", "#000", nil, true)
objref:set_properties({ textures = {texture},
visual_size = {x=0.94, y=0.94} })
end
@ -52,7 +52,7 @@ function techage.display.display_updateXL(pos, objref)
local text = lcdlib_bugfix(nvm.text)
local texture = lcdlib.make_multiline_texture(
"default", text,
126, 70, NUM_ROWS, "top", "#000")
126, 70, NUM_ROWS, "top", "#000", nil, true)
objref:set_properties({ textures = {texture},
visual_size = {x=0.94*1.9, y=0.94} })
end

View File

@ -30,8 +30,8 @@ elseif minetest.global_exists("tubelib2") and tubelib2.version < 2.2 then
elseif minetest.global_exists("minecart") and minecart.version < 2.04 then
minetest.log("error", "[techage] Techage requires minecart version 2.04 or newer!")
return
elseif minetest.global_exists("lcdlib") and lcdlib.version < 1.02 then
minetest.log("error", "[techage] Techage requires lcdlib version 1.02 or newer!")
elseif minetest.global_exists("lcdlib") and lcdlib.version < 1.03 then
minetest.log("error", "[techage] Techage requires lcdlib version 1.03 or newer!")
return
elseif minetest.global_exists("safer_lua") and safer_lua.version < 1.01 then
minetest.log("error", "[techage] Techage requires safer_lua version 1.01 or newer!")