This commit is contained in:
Bunny67
2017-12-18 18:23:34 +03:00
parent ab0bcb8e91
commit 4622a32145
4 changed files with 90 additions and 61 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ for k, v in next, {
--]]
EnableElement = function(self, name, unit)
argcheck(name, 2, 'string')
argcheck(unit, 3, 'string', 'nil')
argcheck(unit or self.unit, 3, 'string', 'nil')
local element = elements[name]
if(not element or self:IsElementEnabled(name) or not activeElements[self]) then return end