Skip to content

Commit

Permalink
Fix wrong version and missing event levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 20, 2024
1 parent bcaab33 commit bb1138a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gd": {
"win": "2.2074"
},
"version": "v0.9.10",
"version": "v0.9.11",
"id": "zalphalaneous.minecraft",
"name": "Minecraftify!",
"developer": "Alphalaneous",
Expand Down
4 changes: 3 additions & 1 deletion src/ui/hooks/CreatorLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class $modify(MyCreatorLayer, CreatorLayer){
MCButton* featuredButton = MCButton::create("Featured", 38.1f, this, menu_selector(CreatorLayer::onFeaturedLevels));
MCButton* dailyButton = MCButton::create("Daily", 38.1f, this, menu_selector(CreatorLayer::onDailyLevel));
MCButton* weeklyButton = MCButton::create("Weekly", 38.1f, this, menu_selector(CreatorLayer::onWeeklyLevel));
MCButton* eventButton = MCButton::create("Event", 38.1f, this, menu_selector(CreatorLayer::onEventLevel));
MCButton* scoresButton = MCButton::create("Leaderboard", 38.1f, this, menu_selector(CreatorLayer::onLeaderboards));
MCButton* savedButton = MCButton::create("Saved", 38.1f, this, menu_selector(CreatorLayer::onSavedLevels));

Expand Down Expand Up @@ -98,8 +99,9 @@ class $modify(MyCreatorLayer, CreatorLayer){

minecraftButtonMenu->addChild(dailyButton);
minecraftButtonMenu->addChild(weeklyButton);
minecraftButtonMenu->addChild(scoresButton);
minecraftButtonMenu->addChild(eventButton);
minecraftButtonMenu->addChild(pathsButton);
minecraftButtonMenu->addChild(scoresButton);
minecraftButtonMenu->addChild(savedButton);
minecraftButtonMenu->addChild(questsButton);
minecraftButtonMenu->addChild(gauntletsButton);
Expand Down
2 changes: 1 addition & 1 deletion src/ui/hooks/PlayLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class $modify(MyPlayLayer, PlayLayer){

std::vector<std::string> lines = Utils::splitString(m_fields->debugText->getString(), "\n");

createTextLayer("version-label"_spr, m_fields->leftDebugNode, "Minecraft 2.206 (2.206/Geode)");
createTextLayer("version-label"_spr, m_fields->leftDebugNode, "Minecraft 2.2074 (2.2074/Geode)");
createTextLayer("fps-label"_spr, m_fields->leftDebugNode, fmt::format("{} fps", m_fields->fpsVal));
createTextLayer("level-id-label"_spr, m_fields->leftDebugNode, fmt::format("ID: {}", getFromPos(0, lines)));

Expand Down

0 comments on commit bb1138a

Please sign in to comment.