Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl authored Apr 6, 2024
1 parent 2ba7e4c commit 4e0fbfc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <Geode/cocos/include/ccTypes.h>
#include <Geode/loader/Mod.hpp>
#include <Geode/modify/CCMotionStreak.hpp>
#include <Geode/loader/Loader.hpp>
#include <Geode/ui/Notification.hpp>

using namespace geode::prelude;

Expand Down Expand Up @@ -92,9 +90,8 @@ class $modify(PlayLayer) {
auto rainbowColor = getRainbow(0, saturation);
auto rainbowColor2 = getRainbow(180, saturation);
auto rainbowColor3 = getRainbow(90, saturation);

bool enable = Mod::get()->getSettingValue<bool>("enable");
bool isQolmodLoaded = Loader::get()->isModLoaded("TheSillyDoggo.Cheats");
Notification* notif = Notification::create("GWT Won't work with QOLMod!", NotificationIcon::Warning, 3.0f);

if (enable == true) {
if (m_player1->m_waveTrail) {
Expand All @@ -103,12 +100,7 @@ class $modify(PlayLayer) {

if (m_player2->m_waveTrail) {
m_player2->m_waveTrail->setColor(rainbowColor2);
}

if (isQolmodLoaded == true) {
notif->show();
notif->hide();
}
}
}

PlayLayer::postUpdate(p0);
Expand Down

0 comments on commit 4e0fbfc

Please sign in to comment.