From f6298d7b8717ccb91c5ee99ba917184e3545b7a8 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 9 Sep 2019 20:52:15 +0200 Subject: [PATCH] Fix schematics with extra headers to parse properly Currently no schematic format makes use of these, but that may change so do some future proofing. --- worldedit/serialization.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua index ddc59cd..ae300f8 100644 --- a/worldedit/serialization.lua +++ b/worldedit/serialization.lua @@ -24,7 +24,7 @@ Serialization version history: -- @return Extra header fields as a list of strings, or nil if not supported. -- @return Content (data after header). function worldedit.read_header(value) - if value:find("^[0-9]+[%-:]") then + if value:find("^[0-9]+[,:]") then local header_end = value:find(":", 1, true) local header = value:sub(1, header_end - 1):split(",") local version = tonumber(header[1])