Skip to content

Commit

Permalink
fix error if mlfeed installed but not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sylae committed Feb 8, 2024
1 parent c435ab1 commit 3143ea5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Bonk.as
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ void step() {

#if DEPENDENCY_MLFEEDRACEDATA && DEPENDENCY_MLHOOK
auto mlf = MLFeed::GetRaceData_V3();
auto plf = mlf.GetPlayer_V3(MLFeed::LocalPlayersName);
if (plf !is null) {
if (plf.spawnStatus != MLFeed::SpawnStatus::Spawned || (plf.LastRespawnRaceTime - plf.CurrentRaceTime) > 0) {
prev_speed = 0;
lastBonk == Time::Now;
return;
if (mlf !is null) {
auto plf = mlf.GetPlayer_V3(MLFeed::LocalPlayersName);
if (plf !is null) {
if (plf.spawnStatus != MLFeed::SpawnStatus::Spawned || (plf.LastRespawnRaceTime - plf.CurrentRaceTime) > 0) {
prev_speed = 0;
lastBonk == Time::Now;
return;
}
}
}
#endif
Expand Down

0 comments on commit 3143ea5

Please sign in to comment.