Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 15, 2024
1 parent cd1972a commit 10a4213
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 1.5.8

- Fixed not being able to use checkpoints in platformer with all modes platformer enabled
- Fixed crash when playtesting with **Force Ghost On** enabled
- Coins are now collected if you complete a level with 1 attempt practice complete

# 1.5.7
Expand Down
11 changes: 7 additions & 4 deletions src/Hacks/ForceGhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ class $modify (PlayerObject)
{
void toggleGhostEffect(GhostType p0)
{
if (Client::GetModuleEnabled("ghost-on"))
p0 = GhostType::Enabled;
if (PlayLayer::get())
{
if (Client::GetModuleEnabled("ghost-on"))
p0 = GhostType::Enabled;

if (Client::GetModuleEnabled("ghost-off"))
p0 = GhostType::Disabled;
if (Client::GetModuleEnabled("ghost-off"))
p0 = GhostType::Disabled;
}

PlayerObject::toggleGhostEffect(p0);
}
Expand Down

0 comments on commit 10a4213

Please sign in to comment.