mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-10-15 00:35:20 +02:00
Fix pattern
This commit is contained in:
@@ -54,7 +54,7 @@ local function show_node_formspec(playername, pos)
|
|||||||
fs = fs:gsub("context", nodemeta)
|
fs = fs:gsub("context", nodemeta)
|
||||||
|
|
||||||
-- Change all ${} to their corresponding metadata values
|
-- Change all ${} to their corresponding metadata values
|
||||||
fs = fs:gsub("(.)${(.*)}", function(prefix, key)
|
fs = fs:gsub("(.)${(.-)}", function(prefix, key)
|
||||||
-- Don't alter escaped keys
|
-- Don't alter escaped keys
|
||||||
if prefix == "\\" then
|
if prefix == "\\" then
|
||||||
return prefix .. "${" .. key .. "}"
|
return prefix .. "${" .. key .. "}"
|
||||||
|
Reference in New Issue
Block a user