Add missing ta4_button_4x recipe
This commit is contained in:
parent
032f59c11a
commit
48f0235f3b
@ -107,8 +107,11 @@ local function send_cmnd(pos, num)
|
|||||||
local own_num = meta:get_string("node_number")
|
local own_num = meta:get_string("node_number")
|
||||||
local dest = meta:get_string("dest_number" .. num)
|
local dest = meta:get_string("dest_number" .. num)
|
||||||
local cmnd = meta:get_string("command" .. num)
|
local cmnd = meta:get_string("command" .. num)
|
||||||
|
local owner = meta:get_string("owner")
|
||||||
|
if techage.check_numbers(dest, owner) then
|
||||||
techage.send_single(own_num, dest, cmnd)
|
techage.send_single(own_num, dest, cmnd)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function button_update(pos, objref)
|
local function button_update(pos, objref)
|
||||||
pos = vector.round(pos)
|
pos = vector.round(pos)
|
||||||
@ -220,3 +223,12 @@ minetest.register_node("techage:ta4_button_4x", {
|
|||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "techage:ta4_button_4x",
|
||||||
|
recipe = {
|
||||||
|
{"", "techage:ta4_button_off", "techage:ta4_button_off"},
|
||||||
|
{"", "techage:ta4_button_off", "techage:ta4_button_off"},
|
||||||
|
{"", "", ""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user