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:
@@ -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 .. "}"
|
||||
|
Reference in New Issue
Block a user