Skip to content

Commit

Permalink
fix: Update ball manger API.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed Jan 3, 2025
1 parent 504521b commit 1815bf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ public void Switch(string id, bool isClosed)
_pinMame.SetSwitch(_switchIdToPinMameIdMappings[_switches[id].Id], isClosed);
} else if (id == "s_spawn_ball") {
if (isClosed) {
_ballManager.CreateBall(new DebugBallCreator(630, _playfieldComponent.Height / 2f, _playfieldComponent.TableHeight));
_ballManager.CreateBall(new DebugBallCreator(630f, _playfieldComponent.Height / 2f));
}
} else {
Logger.Error($"[PinMAME] Unknown switch \"{id}\".");
Expand Down

0 comments on commit 1815bf6

Please sign in to comment.