Rename Minetest to Luanti
This commit is contained in:
parent
0fd396bebd
commit
cacbd7fa4a
8
init.lua
8
init.lua
@ -469,7 +469,7 @@ function ltool.tab_plant(tree, fields, has_lplant_priv)
|
||||
seltree..
|
||||
"dropdown[-0.1,0.5;5;plantmode;"..F(S("Absolute coordinates"))..","..F(S("Relative coordinates"))..","..F(S("Distance in viewing direction"))..";"..dropdownindex.."]"..
|
||||
--[[ NOTE: This tooltip does not work for the dropdown list in 0.4.10,
|
||||
but it is added anyways in case this gets fixed in later Minetest versions. ]]
|
||||
but it is added anyways in case this gets fixed in later Luanti/Minetest versions. ]]
|
||||
"tooltip[plantmode;"..
|
||||
F(S("- \"Absolute coordinates\": Fields \"x\", \"y\" and \"z\" specify the absolute world coordinates where to plant the tree")).."\n"..
|
||||
F(S("- \"Relative coordinates\": Fields \"x\", \"y\" and \"z\" specify the relative position from your position")).."\n"..
|
||||
@ -1145,7 +1145,7 @@ function ltool.process_form(player,formname,fields)
|
||||
--[[ hacky_spaces is part of a workaround, see comment on hacky_spaces in ltool.join.
|
||||
This workaround will slightly change the formspec by adding 0-5 spaces
|
||||
to the end, changing the number of spaces on each send. This forces
|
||||
Minetest to re-send the formspec.
|
||||
Luanti to re-send the formspec.
|
||||
Spaces are completely harmless in a formspec.]]
|
||||
-- BEGIN OF WORKAROUND
|
||||
local hacky_spaces = ltool.playerinfos[playername].treeform.hacky_spaces
|
||||
@ -1478,8 +1478,8 @@ function ltool.join(player)
|
||||
infotable.treeform.edit.thin_branches = "true"
|
||||
infotable.treeform.help = {}
|
||||
infotable.treeform.help.tab = 1
|
||||
--[[ Workaround for annoying bug in Minetest: When you call the identical formspec twice,
|
||||
Minetest does not send the second one. This is an issue when the player has changed the
|
||||
--[[ Workaround for annoying bug in the engine: When you call the identical formspec twice,
|
||||
it does not send the second one. This is an issue when the player has changed the
|
||||
input fields in the meanwhile, resetting fields will fail sometimes.
|
||||
TODO: Remove workaround when not needed anymore. ]]
|
||||
-- BEGIN OF WORKAROUND
|
||||
|
Loading…
x
Reference in New Issue
Block a user