Merge pull request #1 from sbrl/patch-2

[gates] Remove undeclared global variable
This commit is contained in:
Splizard 2018-09-23 11:44:24 +12:00 committed by GitHub
commit 6387877afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,8 +42,6 @@ gates = {}
function gates.register_gate(name, def, open, closed)
if name ~= nil then
if mode == nil then mode = "on_punch" end
--Creates two nodes, open and closed node
for i,v in pairs(def) do open[i] = v end