Skip to content

Commit

Permalink
digilines def check
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jan 16, 2024
1 parent eaa7840 commit ae8f855
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mesecons/lcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ local lcd_name = "digilines:lcd"

mtui.mesecons.allowed_nodes[lcd_name] = true

local lcd_def = assert(minetest.registered_nodes[lcd_name])
local lcd_def = minetest.registered_nodes[lcd_name]
if not lcd_def or not lcd_def.digilines then
-- old or invalid digilines mod, skip this module
return
end

mtui.mesecons.allowed_nodes[lcd_name] = true

local old_effector_action = assert(lcd_def.digilines.effector.action)

lcd_def.digilines.effector.action = function(pos, node, channel, msg)
Expand Down

0 comments on commit ae8f855

Please sign in to comment.