1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-10-15 00:35:20 +02:00

Improve exploit fix (#8)

This commit is contained in:
luk3yx
2023-12-04 21:28:14 +13:00
committed by GitHub
parent cdc3cf55f5
commit 03953f0fc0
2 changed files with 1 additions and 12 deletions

View File

@@ -28,11 +28,6 @@ local FS = function(...) return minetest.formspec_escape(S(...)) end
function signs_api.set_display_text(pos, text, font)
local meta = minetest.get_meta(pos)
-- Horrible workaround to prevent the engine from trying to resolve
-- metadata keys
if text:sub(1, 2) == "${" and text:sub(-1) == "}" then
text = text .. " "
end
meta:set_string("display_text", text)
if text and text ~= "" then
meta:set_string("infotext", "\""..text.."\"")