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
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
-- Schematic file format version 4
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 filename = path .. "/" .. name .. ".mts"
filename = filename:gsub("\"", "\\\""):gsub("\\", "\\\\")