Enable test blocks via minetest.settings

This commit is contained in:
Joachim Stolberg 2022-01-03 11:51:20 +01:00
parent f65095a04d
commit 91d3a7a24a
3 changed files with 5 additions and 3 deletions

@ -9,4 +9,6 @@ dofile(MP .. "/internal1.lua")
dofile(MP .. "/tube_api.lua")
dofile(MP .. "/storage.lua")
-- Only for testing/demo purposes
--dofile(MP .. "/tube_test.lua")
if minetest.settings:get_bool("tubelib2_testingblocks_enabled") == true then
dofile(MP .. "/tube_test.lua")
end

@ -132,7 +132,7 @@ end
-- pairing functions
--------------------------------------------------------------------------------------
-- Pairing helper function
-- Pairing helper function. NOT USED (see internal2.lua)!!!
function Tube:store_teleport_data(pos, peer_pos)
local meta = M(pos)
meta:set_string("tele_pos", S(peer_pos))

@ -269,7 +269,7 @@ local function store_connection(pos, peer_pos)
meta:set_string("peer_pos", P2S(peer_pos))
meta:set_string("channel", "")
meta:set_string("formspec", "")
meta:set_string("infotext", "Connected with "..P2S(peer_pos))
meta:set_string("infotext", "Connected to "..P2S(peer_pos))
end
local function prepare_pairing(pos)