-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19064fd
commit c55e3fc
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local lcd_name = "digilines:lcd" | ||
|
||
mtui.mesecons.allowed_nodes[lcd_name] = true | ||
|
||
local lcd_def = assert(minetest.registered_nodes[lcd_name]) | ||
local old_effector_action = assert(lcd_def.digilines.effector.action) | ||
|
||
lcd_def.digilines.effector.action = function(pos, node, channel, msg) | ||
old_effector_action(pos, node, channel, msg) | ||
|
||
if type(msg) ~= "string" then | ||
return | ||
end | ||
|
||
local meta = minetest.get_meta(pos) | ||
local setchan = meta:get_string("channel") | ||
if setchan ~= channel then return end | ||
|
||
mtui.send_command({ | ||
type = "mesecons_event", | ||
data = { | ||
pos = pos, | ||
state = msg, | ||
nodename = node.name | ||
} | ||
}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
name = mtui | ||
optional_depends = mail, monitoring, mtt, monitoring, xp_redo, technic_chests, beerchat, mesecons_switch, mesecons_lightstone | ||
optional_depends = """ | ||
mail, | ||
monitoring, | ||
mtt, | ||
monitoring, | ||
xp_redo, | ||
technic_chests, | ||
beerchat, | ||
mesecons_switch, | ||
mesecons_lightstone, | ||
digilines | ||
""" |