1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fixed linting error

This commit is contained in:
SimonFlapse 2019-02-18 14:32:01 +01:00
parent 210eb45b39
commit 667a1c45e7

View File

@ -36,10 +36,9 @@ local function on_built_entity(event)
local pos = {x = abs(entity.position.x) - (size_x/2), y = abs(entity.position.y) - (size_y/2)}
local entity_pos = entity.position
local quadrant_bound = {0, 0}
local within_range = false
if string.find(force.name, 'quadrant') then
quadrant_bound = quadrant_bounds[force.name]
local quadrant_bound = quadrant_bounds[force.name]
if (force.name == 'quadrant1') then
within_range = (entity_pos.x >= quadrant_bound.x and entity_pos.y <= quadrant_bound.y)
elseif (force.name == 'quadrant2') then