mirror of
https://github.com/mt-mods/signs_lib.git
synced 2024-12-23 15:50:19 +01:00
Merge branch 'updateonoff' into 'master'
On/off switch doesn't reset the text anymore See merge request VanessaE/signs_lib!5
This commit is contained in:
commit
3c824aedf8
3
api.lua
3
api.lua
@ -1195,14 +1195,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
meta:set_int("widefont", 1)
|
meta:set_int("widefont", 1)
|
||||||
change = true
|
change = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if change then
|
if change then
|
||||||
minetest.log("action", S("@1 flipped the wide-font switch to \"@2\" at @3",
|
minetest.log("action", S("@1 flipped the wide-font switch to \"@2\" at @3",
|
||||||
(playername or ""),
|
(playername or ""),
|
||||||
(fields.on and "off" or "on"),
|
(fields.on and "off" or "on"),
|
||||||
minetest.pos_to_string(pos)
|
minetest.pos_to_string(pos)
|
||||||
))
|
))
|
||||||
minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name))
|
|
||||||
signs_lib.update_sign(pos, fields)
|
signs_lib.update_sign(pos, fields)
|
||||||
|
minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user