Skip to content

Commit

Permalink
Remove deathlink check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Apr 12, 2024
1 parent 9b9bdf2 commit 292ec51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"geode": "2.0.0-beta.20",
"geode": "2.0.0-beta.23",
"gd": {
"win": "2.204"
},
"version": "v0.5.15",
"version": "v0.5.16",
"id": "zalphalaneous.minecraft",
"name": "Minecraftify!",
"developer": "Alphalaneous",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/hooks/LoadingLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class $modify(MyLoadingLayer, LoadingLayer){
bool isInitialOpen = true;
bool didHook = false;

TodoReturn loadingFinished(){
void loadingFinished(){

if(this->m_fields->didHook){
if(GlobalVars::getSharedInstance()->isInitialLaunch){
Expand Down
8 changes: 0 additions & 8 deletions src/ui/layers/ExtrasLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,10 @@ bool ExtrasLayer::init() {

m_menuLayer = dynamic_cast<CCLayer*>(scene->getChildren()->objectAtIndex(0));

CCMenuItemSpriteExtra* deathLinkButton = dynamic_cast<CCMenuItemSpriteExtra*>(m_menuLayer->getChildByIDRecursive("alphalaneous.deathlink/deathlink-button"));

CCMenu* rightMenu = dynamic_cast<CCMenu*>(m_menuLayer->getChildByID("right-side-menu"));

dynamic_cast<ColumnLayout*>(rightMenu->getLayout())->setAxis(Axis::Row);

if(deathLinkButton){
deathLinkButton->removeFromParent();
rightMenu->addChild(deathLinkButton);
}


rightMenu->removeChildByID("daily-chest-button");

rightMenu->setContentSize({winSize.width, winSize.height/2});
Expand Down

0 comments on commit 292ec51

Please sign in to comment.