[0.13.17] large objects aren't placed on the specified pos
Posted: Thu Aug 18, 2016 6:28 pm
Large object created by aren't placed on the right position:


Smaller objects are placed in the correct position:


Code: Select all
surface.create_entity{name="reactor-"..tostring(dx).."x"..tostring(dy), position={left_top.position.x + dx/2 -1/2, left_top.position.y + dy/2 -1/2}, force=force}
Code: Select all
local new_reactor = surface.create_entity{name="reactor-"..tostring(dx).."x"..tostring(dy), position={left_top.position.x + dx/2 -1/2, left_top.position.y + dy/2 -1/2}, force=force}
game.players[1].print("1: x: " .. left_top.position.x + dx/2 -1/2 .. ", y: " .. left_top.position.y + dy/2 -1/2)
game.players[1].print("2: x: " .. new_reactor.position.x .. ", y: " .. new_reactor.position.y)


Smaller objects are placed in the correct position:

