From a12ce084301daee9a4aeb1463d0cfa852145f075 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 17 Jan 2021 19:29:23 +0100 Subject: [PATCH] Directly access global table --- minetest.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/minetest.lua b/minetest.lua index 8f76b2f..1404c28 100644 --- a/minetest.lua +++ b/minetest.lua @@ -687,7 +687,9 @@ function colorspec:to_number() return self.r * 0xFFFFFF + self.g * 0xFFFF + self.b * 0xFF + self.a end -colorspec_to_colorstring = rawget(_G, "minetest").colorspec_to_colorstring or function(spec) +colorspec_to_colorstring = _G.minetest.colorspec_to_colorstring or function(spec) return colorspec.from_any(spec):to_string() end +write_schematic = function(fil) end +-- TODO schematic format \ No newline at end of file