added extra buttons for configuration of locked travelnets
This commit is contained in:
parent
4331483c72
commit
cc1e2eade3
9
init.lua
9
init.lua
@ -22,6 +22,7 @@
|
|||||||
Please configure this mod in config.lua
|
Please configure this mod in config.lua
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
10.03.19 - Added the extra config buttons for locked_travelnet mod.
|
||||||
09.03.19 - Several PRs merged (sound added, locale changed etc.)
|
09.03.19 - Several PRs merged (sound added, locale changed etc.)
|
||||||
Version bumped to 2.3
|
Version bumped to 2.3
|
||||||
26.02.19 - Removing a travelnet can now be done by clicking on a button (no need to
|
26.02.19 - Removing a travelnet can now be done by clicking on a button (no need to
|
||||||
@ -325,8 +326,10 @@ travelnet.update_formspec = function( pos, puncher_name, fields )
|
|||||||
-- add name of station + network + owner + update-button
|
-- add name of station + network + owner + update-button
|
||||||
local zusatzstr = "";
|
local zusatzstr = "";
|
||||||
local trheight = "10";
|
local trheight = "10";
|
||||||
if( this_node and this_node.name=="locked_travelnet:travelnet" ) then
|
if( this_node and this_node.name=="locked_travelnet:travelnet" and locks) then
|
||||||
zusatzstr = "field[0.3,11;6,0.7;locks_sent_lock_command;"..S("Locked travelnet. Type /help for help:")..";]";
|
zusatzstr = "field[0.3,11;6,0.7;locks_sent_lock_command;"..S("Locked travelnet. Type /help for help:")..";]"..
|
||||||
|
locks.get_authorize_button(10,"10.5")..
|
||||||
|
locks.get_config_button(11,"10.5")
|
||||||
trheight = "11.5";
|
trheight = "11.5";
|
||||||
end
|
end
|
||||||
local formspec = "size[12,"..trheight.."]"..
|
local formspec = "size[12,"..trheight.."]"..
|
||||||
@ -686,6 +689,8 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
|
|||||||
description = "travelnet box"
|
description = "travelnet box"
|
||||||
elseif( node and node.name and node.name == "travelnet:elevator") then
|
elseif( node and node.name and node.name == "travelnet:elevator") then
|
||||||
description = "elevator"
|
description = "elevator"
|
||||||
|
elseif( node and node.name and node.name == "locked_travelnet:travelnet") then
|
||||||
|
description = "locked travelnet"
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(name, "Error: Unkown node.");
|
minetest.chat_send_player(name, "Error: Unkown node.");
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user