properly pass mts format string.

https://github.com/paramat/saveschems/issues/1
This commit is contained in:
Auke Kok 2016-01-14 11:38:11 -08:00
parent bda4a4c836
commit e7154884fb

View File

@ -2,7 +2,7 @@
-- Schematic file format version 4 -- Schematic file format version 4
local mts_save = function(name, schematic) local mts_save = function(name, schematic)
local s = minetest.serialize_schematic(schematic, mts, {}) local s = minetest.serialize_schematic(schematic, "mts", {})
local path = minetest.get_modpath("saveschems") .. "/schematics" local path = minetest.get_modpath("saveschems") .. "/schematics"
local filename = path .. "/" .. name .. ".mts" local filename = path .. "/" .. name .. ".mts"
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\") filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")