Update init.lua

This commit is contained in:
brittm3 2016-11-23 22:35:06 -06:00 committed by GitHub
parent 7c90ac9ab5
commit e5b5ae4ae4
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ lightning.strike = function(pos, strength)
if strength == nil then
strength = lightning.strength_default
end
if strength > strength_max then
strength = strength_max
if strength > lightning.strength_max then
strength = lightning.strength_max
end
local outer_radius = strength
local outer_radius_damage = strength * 3