Page 1 of 1

[1.1.99] Inconsistent belt / loader snapping

Posted: Sat Dec 02, 2023 1:58 am
by KiwiHawk
Belts don't consistently snap to loaders when placing a blueprint.

Mods required: None
  • Create a blueprint of a loader connecting to a belt at 90 degrees
  • Hold the blueprint in cursor so you can see the preview
  • The input side of the belt should snap to the loader but doesn't
  • Rotate the blueprint
  • Belt will now snap to the loader
  • Rotate the blueprint again
  • After the fourth rotation (back to the starting orientation) the belt will again not snap
NotSnapped.png
NotSnapped.png (257.99 KiB) Viewed 2415 times
Snapped.png
Snapped.png (225.56 KiB) Viewed 2415 times

Re: [1.1.99] Inconsistent belt / loader snapping

Posted: Sat Dec 02, 2023 10:26 am
by boskid
Thanks for the report. This issue was already fixed for 2.0 but given a fix is 1 line of code i decided to backport this fix and so it is now fixed for 1.1.100. It is an issue of BuildingRenderer drawing preview as it was changing entities position without notifying entities they had position changed. This notification was important for loader because it uses it to update tile position where it has its belt piece. When blueprint was rotated this tile position was updated during direction change and the issue would dissapear.

Re: [1.1.99] Inconsistent belt / loader snapping

Posted: Sat Dec 02, 2023 12:50 pm
by KiwiHawk
Amazing, thank you!