mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 23:48:08 -05:00
fix impostor playlayer fix being enabled in forward compat
This commit is contained in:
parent
b44184c081
commit
96fee44064
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ using namespace geode::prelude;
|
|||
// This workaround solves the issue by making it impossible to start the level during a transition.
|
||||
|
||||
struct CustomLevelPage : Modify<CustomLevelPage, LevelPage> {
|
||||
GEODE_FORWARD_COMPAT_DISABLE_HOOKS("Impostor PlayLayer fix")
|
||||
|
||||
void onPlay(cocos2d::CCObject* sender) {
|
||||
if (!typeinfo_cast<CCTransitionScene*>(CCScene::get())) {
|
||||
LevelPage::onPlay(sender);
|
||||
|
|
Loading…
Reference in a new issue