Skip to content

Commit 10a4213

Browse files
committed
c
1 parent cd1972a commit 10a4213

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 1.5.8
22

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

67
# 1.5.7

src/Hacks/ForceGhost.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ class $modify (PlayerObject)
88
{
99
void toggleGhostEffect(GhostType p0)
1010
{
11-
if (Client::GetModuleEnabled("ghost-on"))
12-
p0 = GhostType::Enabled;
11+
if (PlayLayer::get())
12+
{
13+
if (Client::GetModuleEnabled("ghost-on"))
14+
p0 = GhostType::Enabled;
1315

14-
if (Client::GetModuleEnabled("ghost-off"))
15-
p0 = GhostType::Disabled;
16+
if (Client::GetModuleEnabled("ghost-off"))
17+
p0 = GhostType::Disabled;
18+
}
1619

1720
PlayerObject::toggleGhostEffect(p0);
1821
}

0 commit comments

Comments
 (0)