summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-18 18:03:20 -0500
committercheapie <no-email-for-you@example.com>2024-04-18 18:03:20 -0500
commitfced29c598cdcda58aec2e5db4fca19aae06bf45 (patch)
tree2be08cadbb339c7afc443a520b706a66bbf6600c
parent19d69394b61ed9370d79c5efbd1b23fb8c5eac6a (diff)
downloadcelevator-fced29c598cdcda58aec2e5db4fca19aae06bf45.tar
celevator-fced29c598cdcda58aec2e5db4fca19aae06bf45.tar.gz
celevator-fced29c598cdcda58aec2e5db4fca19aae06bf45.tar.bz2
celevator-fced29c598cdcda58aec2e5db4fca19aae06bf45.tar.xz
celevator-fced29c598cdcda58aec2e5db4fca19aae06bf45.zip
Fix custom floor names not appearing on COP
-rw-r--r--controllerfw.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllerfw.lua b/controllerfw.lua
index ef99714..4fb93b3 100644
--- a/controllerfw.lua
+++ b/controllerfw.lua
@@ -1016,7 +1016,7 @@ for i=1,floorcount,1 do
local yp = (coprows-row+1)*1.25+1
local xp = col*1.25
local tex = mem.carcalls[i] and litimg or unlitimg
- mem.copformspec = mem.copformspec..string.format("image_button[%f,%f;1.2,1.2;%s;carcall%d;%d;false;false;%s]",xp,yp,tex,i,i,litimg)
+ mem.copformspec = mem.copformspec..string.format("image_button[%f,%f;1.2,1.2;%s;carcall%d;%s;false;false;%s]",xp,yp,tex,i,minetest.formspec_escape(mem.params.floornames[i]),litimg)
end
local doxp = (copcols == 1) and 0.5 or 1.25