Skip to content

Commit

Permalink
Merge pull request #15 from Fatmice/0.6.5
Browse files Browse the repository at this point in the history
Fixed wall-type heat-exchanger search area
  • Loading branch information
Fatmice authored Aug 17, 2016
2 parents 14bc203 + b81210a commit 293be83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ script.on_event(defines.events.on_built_entity, function(event)
local x = event.created_entity.position.x
local y = event.created_entity.position.y

local up = event.created_entity.surface.find_entities_filtered{area = {{x, y+1}, {x, y+1}}, name = "pipe"}
local down = event.created_entity.surface.find_entities_filtered{area = {{x, y-1}, {x, y-1}}, name = "pipe"}
local left = event.created_entity.surface.find_entities_filtered{area = {{x-1, y}, {x-1, y}}, name = "pipe"}
local right = event.created_entity.surface.find_entities_filtered{area = {{x+1, y}, {x+1, y}}, name = "pipe"}
local up = event.created_entity.surface.find_entities_filtered{position = {x, y-1}, name = "pipe"}
local down = event.created_entity.surface.find_entities_filtered{position = {x, y+1}, name = "pipe"}
local left = event.created_entity.surface.find_entities_filtered{position = {x-1, y}, name = "pipe"}
local right = event.created_entity.surface.find_entities_filtered{position = {x+1, y}, name = "pipe"}

oldheatExchanger = {}
oldheatExchanger[1] = event.created_entity
Expand Down

0 comments on commit 293be83

Please sign in to comment.