mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-27 23:00:29 +02:00
Gates: Minor docs and code cleanup
This commit is contained in:
parent
f5426d15ba
commit
21449ba6d2
|
@ -1 +1 @@
|
|||
Diodes only transfer power (signals) to one direction.
|
||||
Diodes conduct signals in one direction only.
|
||||
|
|
|
@ -57,9 +57,7 @@ end
|
|||
local function register_gate(name, inputnumber, assess, recipe, description)
|
||||
local get_inputrules = inputnumber == 2 and gate_get_input_rules_twoinputs or
|
||||
gate_get_input_rules_oneinput
|
||||
if not description then
|
||||
description = "Logic Gate: "..name
|
||||
end
|
||||
description = "Logic Gate: "..name
|
||||
|
||||
local basename = "mesecons_gates:"..name
|
||||
mesecon.register_node(basename, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user