From d6157087f1b6fd47a3c1ba88ac78478a73b0745f Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 20 Aug 2023 21:46:31 +0200 Subject: [PATCH] Adapt to lcdlib 1.03 --- icta_controller/display.lua | 4 ++-- init.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icta_controller/display.lua b/icta_controller/display.lua index 62d5215..19295b5 100644 --- a/icta_controller/display.lua +++ b/icta_controller/display.lua @@ -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 diff --git a/init.lua b/init.lua index 091cc10..e2d5797 100644 --- a/init.lua +++ b/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!")