When I try to place a downwards powerpole (will test with an upwards pole in a moment) I get the following error:
Code: Select all
error when running the event handler:
__Surfaces__/script/lib/surfaces.lua:315:
bad argument #-1 to "connect_neighbor"
(table expected, got nil)
Code: Select all
elseif v.task==task_createpair then
local paired_entity = create_paired_entity(v.data.entity, v.data.paired_surface)
v.data.paired_entity = paired_entity
if paired_entity==nil or paired_entity==false then
table.insert(global.task_queue, v)
else
table.insert(global.task_queue, {task=task_finishpair,data=v.data})
end
elseif v.task==task_finishpair then
finalize_paired_entity(v.data.entity, v.data.paired_entity)
end