From e4b81e03cfc6725a920d7d32ceeadc575580420f Mon Sep 17 00:00:00 2001 From: Alphalaneous <38200084+Alphalaneous@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:11:53 -0400 Subject: [PATCH] Fix crash --- mod.json | 2 +- src/ui/hooks/LoadingLayer.h | 4 ++-- src/ui/hooks/MenuLayer.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mod.json b/mod.json index f2c172e..b2567f3 100644 --- a/mod.json +++ b/mod.json @@ -3,7 +3,7 @@ "gd": { "win": "2.206" }, - "version": "v0.6.6", + "version": "v0.6.7", "id": "zalphalaneous.minecraft", "name": "Minecraftify!", "developer": "Alphalaneous", diff --git a/src/ui/hooks/LoadingLayer.h b/src/ui/hooks/LoadingLayer.h index 7ae8025..ebeb90a 100644 --- a/src/ui/hooks/LoadingLayer.h +++ b/src/ui/hooks/LoadingLayer.h @@ -149,11 +149,11 @@ bool LoadingLayer_init(LoadingLayer* self, bool p0){ return true; } -/*$on_mod(Loaded) { +$on_mod(Loaded) { Result hook = Mod::get()->hook( reinterpret_cast(geode::base::get() + 0x30db60), &LoadingLayer_init, "LoadingLayer::init", tulip::hook::TulipConvention::Thiscall ); -}*/ \ No newline at end of file +} \ No newline at end of file diff --git a/src/ui/hooks/MenuLayer.h b/src/ui/hooks/MenuLayer.h index 2fdf01c..cb40911 100644 --- a/src/ui/hooks/MenuLayer.h +++ b/src/ui/hooks/MenuLayer.h @@ -33,6 +33,7 @@ class $modify(MenuLayer){ rightSideMenu->setUserObject("orientation", CCInteger::create(1)); } } + return true; } };