mirror of
https://github.com/mt-mods/led_marquee.git
synced 2025-06-28 22:36:41 +02:00
Compare commits
2 Commits
2018-11-09
...
20190430
Author | SHA1 | Date | |
---|---|---|---|
b2defa0eec | |||
4880b5c0c3 |
5
init.lua
5
init.lua
@ -412,6 +412,11 @@ for i = 31, 255 do
|
|||||||
reset_meta(pos)
|
reset_meta(pos)
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
|
local name = sender:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return
|
||||||
|
end
|
||||||
if (fields.channel) then
|
if (fields.channel) then
|
||||||
minetest.get_meta(pos):set_string("channel", fields.channel)
|
minetest.get_meta(pos):set_string("channel", fields.channel)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user