[0.16.51] Beam source position is offset by -1y

This subforum contains all the issues which we already resolved.
Post Reply
Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

[0.16.51] Beam source position is offset by -1y

Post by Boodals »

When creating a beam with LuaSurface.create_entity, when supplying the beam's source as a position, it gets offset by -1y. Adding 1 to the y coordinate fixes this.

Image

Creating a beam from {0, 0} to {1, 0} should be a straight horizontal line, but it is diagonal. I later spawned a car at 0, 0 to confirm that it is the source position that is offset, and not the target position.
Creating a beam from {0, 1} to {1, 0} draws a straight line.

Edit: I just noticed that enabling show-collision-rectangles draws the rectangle where the line would be if the bug were fixed, so its most likely purely a visual glitch.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.51] Beam source position is offset by -1y

Post by Rseding91 »

Thanks for the report. It's now fixed for 0.17.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”