db1e731ba7
* add lbm to migrate formspecs automatically on mapblock load * add setting for formspec migration * apply suggestion from @OgelGames * rename setting to `travelnet_cleanup_lbm` Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
10 lines
314 B
Lua
10 lines
314 B
Lua
|
|
minetest.register_lbm({
|
|
label = "Migrate travelnet formspecs from meta to rightclick/punch-only",
|
|
name = "travelnet:migrate_formspecs",
|
|
nodenames = {"group:travelnet"},
|
|
action = function(pos)
|
|
-- clear formspec meta-field
|
|
minetest.get_meta(pos):set_string("formspec", "")
|
|
end
|
|
}) |