fix impostor playlayer fix being enabled in forward compat

This commit is contained in:
Cvolton 2024-03-11 00:37:24 +01:00
parent b44184c081
commit 96fee44064
No known key found for this signature in database

View file

@ -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);