Compare commits
2 Commits
master
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
9c385319cb | |||
c38e63e3a2 |
4
init.lua
4
init.lua
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
arrow_signs={}
|
arrow_signs={}
|
||||||
|
|
||||||
arrow_signs.formspec = "field[text;Sign text: (Hint: Use / or | to create a new line);${text}]";
|
arrow_signs.formspec = "size[6,2]real_coordinates[true]field[0.375,0.5;5.25,0.8;text;Sign text: (Hit 'Enter' key to validate);${text}]label[0.375,1.5;(Hint: Use / or | to create a new line)]";
|
||||||
|
|
||||||
arrow_signs.on_place = function(itemstack, placer, pointed_thing)
|
arrow_signs.on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
@ -192,3 +192,5 @@ dofile(MODPATH.."/steel.lua")
|
|||||||
if minetest.get_modpath("locks") then
|
if minetest.get_modpath("locks") then
|
||||||
dofile(MODPATH.."/shared_locked.lua")
|
dofile(MODPATH.."/shared_locked.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[arrow_signs] loaded.")
|
||||||
|
@ -40,7 +40,7 @@ minetest.register_node("arrow_signs:shared_locked", {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
|
if not locks:lock_handle_input(pos, formname, fields, sender) then
|
||||||
-- if the user already has the right to use this and did input text
|
-- if the user already has the right to use this and did input text
|
||||||
if( fields.text
|
if( fields.text
|
||||||
and ( not(fields.locks_sent_lock_command)
|
and ( not(fields.locks_sent_lock_command)
|
||||||
@ -62,7 +62,7 @@ minetest.register_node("arrow_signs:shared_locked", {
|
|||||||
--a warning message is also printed by the locks mod
|
--a warning message is also printed by the locks mod
|
||||||
--arrow_signs.savetext( pos, formname, fields, sender );
|
--arrow_signs.savetext( pos, formname, fields, sender );
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user