From fed8eabe3aa872ea6a3f692c7fa0c23de5010d57 Mon Sep 17 00:00:00 2001 From: protocol_1903 <67478786+protocol-1903@users.noreply.github.com> Date: Tue, 12 May 2026 12:02:59 -0700 Subject: [PATCH] Fixed that the pYAE early game menu simulation had the car crashing into the pipe twice. Resolves https://github.com/pyanodon/pybugreports/issues/1340 --- changelog.txt | 1 + prototypes/menu-simulations.lua | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 31056655b..2d65c91f6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -21,6 +21,7 @@ Date: ??? - Fixed beacons not being useable with YAFC and other planner mods. Resolves https://github.com/pyanodon/pybugreports/issues/1449 - Fixed codex search bar saving the search term when switching pages and closing the UI. Resolves https://github.com/pyanodon/pybugreports/issues/1409 - Fixed firearm magazine not being handcraftable. Resolves https://github.com/pyanodon/pybugreports/issues/1432 + - Fixed that the pYAE early game menu simulation had the car crashing into the pipe twice. Resolves https://github.com/pyanodon/pybugreports/issues/1340 --------------------------------------------------------------------------------------------------- Version: 3.0.44 Date: 2025-12-28 diff --git a/prototypes/menu-simulations.lua b/prototypes/menu-simulations.lua index e5ced8eb8..7c6bd1a0a 100644 --- a/prototypes/menu-simulations.lua +++ b/prototypes/menu-simulations.lua @@ -574,15 +574,15 @@ if mods["pyalternativeenergy"] then if tickCount == 60 * 8 then character.riding_state = { acceleration = defines.riding.acceleration.reversing, direction = defines.riding.direction.straight } end - if tickCount == 60 * 8.5 then + if tickCount == 60 * 8.7 then character.riding_state = { acceleration = defines.riding.acceleration.braking, direction = defines.riding.direction.straight } end if tickCount == 60 * 9 then - character.riding_state = { acceleration = defines.riding.acceleration.accelerating, direction = defines.riding.direction.left } - end - if tickCount == 60 * 9.25 then character.riding_state = { acceleration = defines.riding.acceleration.accelerating, direction = defines.riding.direction.right } end + if tickCount == 60 * 9.2 then + character.riding_state = { acceleration = defines.riding.acceleration.nothing, direction = defines.riding.direction.left } + end if tickCount == 60 * 9.4 then character.riding_state = { acceleration = defines.riding.acceleration.accelerating, direction = defines.riding.direction.straight } end