Skip to content

Commit

Permalink
Enable test blocks via minetest.settings
Browse files Browse the repository at this point in the history
  • Loading branch information
joe7575 committed Jan 3, 2022
1 parent f65095a commit 91d3a7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion internal1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion tube_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91d3a7a

Please sign in to comment.