Adapt to lcdlib 1.03
This commit is contained in:
parent
2dc3f24f1c
commit
d6157087f1
@ -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
|
||||
|
4
init.lua
4
init.lua
@ -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!")
|
||||
|
Loading…
Reference in New Issue
Block a user