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

Fix pattern

This commit is contained in:
luk3yx
2023-12-04 08:48:23 +13:00
parent 7b87099f2c
commit cdc3cf55f5

View File

@@ -54,7 +54,7 @@ local function show_node_formspec(playername, pos)
fs = fs:gsub("context", nodemeta)
-- Change all ${} to their corresponding metadata values
fs = fs:gsub("(.)${(.*)}", function(prefix, key)
fs = fs:gsub("(.)${(.-)}", function(prefix, key)
-- Don't alter escaped keys
if prefix == "\\" then
return prefix .. "${" .. key .. "}"