From 070812b1c8f6c95e868c1b26f1dc53ea463c7f3e Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 20 Aug 2024 18:39:56 -0500 Subject: Fix license info button This was broken by the license file name change during the ContentDB listing process --- controllerfw.lua | 2 +- dispatcherfw.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllerfw.lua b/controllerfw.lua index a0de7cd..398aff7 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -1189,7 +1189,7 @@ if mem.screenstate == "oobe_welcome" then fs("button[1,10;2,1;license;License Info]") fs("button[13,10;2,1;next;Next >]") elseif mem.screenstate == "oobe_license" then - local licensefile = io.open(minetest.get_modpath("celevator")..DIR_DELIM.."COPYING") + local licensefile = io.open(minetest.get_modpath("celevator")..DIR_DELIM.."LICENSE") local license = minetest.formspec_escape(licensefile:read("*all")) licensefile:close() fs("textarea[1,1;14,8;license;This applies to the whole celevator mod\\, not just this controller:;"..license.."]") diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 82a4a35..97a4127 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -901,7 +901,7 @@ if mem.screenstate == "oobe_welcome" then fs("button[1,10;2,1;license;License Info]") fs("button[13,10;2,1;next;Next >]") elseif mem.screenstate == "oobe_license" then - local licensefile = io.open(minetest.get_modpath("celevator")..DIR_DELIM.."COPYING") + local licensefile = io.open(minetest.get_modpath("celevator")..DIR_DELIM.."LICENSE") local license = minetest.formspec_escape(licensefile:read("*all")) licensefile:close() fs("textarea[1,1;14,8;license;This applies to the whole celevator mod\\, not just this dispatcher:;"..license.."]") -- cgit v1.2.3