Save formspecs with formspec_version[3].

Apparently Minetest 5.1.1 will treat formspec_version[3] similarly to
formspec_version[2], so compatibility shouldn't be broken.
This commit is contained in:
luk3yx 2020-05-06 23:13:43 +12:00
parent 2bf4a582c0
commit f3864f0c9f
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ function renderer.elem_to_ast(elem)
local w = tonumber(elem:getAttribute('data-w'))
local h = tonumber(elem:getAttribute('data-h'))
local res = {
formspec_version = 2,
formspec_version = 3,
{
type = 'size',
w = w or 0,