mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-10-02 07:53:07 +02:00
Enable test blocks via minetest.settings
This commit is contained in:
parent
f65095a04d
commit
91d3a7a24a
4
init.lua
4
init.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user