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:
parent
2bf4a582c0
commit
f3864f0c9f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue