Gates: Minor docs and code cleanup

This commit is contained in:
Wuzzy 2017-03-07 14:36:15 +01:00
parent f5426d15ba
commit 21449ba6d2
2 changed files with 2 additions and 4 deletions

View File

@ -1 +1 @@
Diodes only transfer power (signals) to one direction.
Diodes conduct signals in one direction only.

View File

@ -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, {