From 7ba7a5cceb2e56c9f9f61ac0e806983da26a4483 Mon Sep 17 00:00:00 2001 From: upsilon Date: Wed, 29 Apr 2020 18:06:17 +0200 Subject: [PATCH] MapDataStorage: replace "%a" format with "%.17g" --- moremesecons_utils/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moremesecons_utils/init.lua b/moremesecons_utils/init.lua index c908be0..848381d 100644 --- a/moremesecons_utils/init.lua +++ b/moremesecons_utils/init.lua @@ -240,7 +240,7 @@ MapDataStorage.__index = { local vi = node_position_key(pos) -- Convert the double reversible to a string; -- minetest.serialize does not (yet) do this - indices[i] = ("%a"):format(vi) + indices[i] = ("%.17g"):format(vi) values[i] = v end result = {