Permalink
Browse files

All customparams are strings, this is FUCKING STUPID

Fix crash
  • Loading branch information...
ForbodingAngel committed Nov 4, 2018
1 parent 5ea2b28 commit 644b85a7109e7d4050208ba6b9739dddd0bb402e
Showing with 1 addition and 1 deletion.
  1. +1 −1 LuaRules/Gadgets/ai_resource_multiplier.lua
@@ -113,7 +113,7 @@ function gadget:Initialize()
ecoUnitsDefs[uDefID] = true
end
if def.customParams then
if def.customParams.metal_extractor and def.customParams.metal_extractor > 0 then
if def.customParams.metal_extractor and tonumber(def.customParams.metal_extractor) > 0 then
mexUnitDefs[uDefID] = def.customParams.metal_extractor
mexUnitDefs[uDefID] = def.extractsMetal
ecoUnitsDefs[uDefID] = true

0 comments on commit 644b85a

Please sign in to comment.