Skip to content

Commit 0f471cc

Browse files
committed
Warnin'
1 parent 332218d commit 0f471cc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/dllmain.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ static void HoverRenderer__renderHoverBox(HoverRenderer* self, MinecraftUIRender
8686
}
8787

8888
ModFunction void Initialize(AmethystContext* ctx) {
89+
SemVersion semVersion = ctx->mMinecraftPackageInfo.mVersion;
90+
91+
// This happens after global initialization, which is where the crash is happening lol.
92+
// this only seems to show up with dev mode, eh it cant hurt i guess to keep.
93+
if (semVersion.mPatch >= 7301) {
94+
Assert("It is known that BetterInventory@1.5.2 does not work for .73 and above. While the mod has been made specifically for the .71 version, it **does** work on .72 which is still avaliable to play!");
95+
}
96+
8997
ctx->mHookManager.RegisterFunction<&Item::appendFormattedHovertext>("40 55 53 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 45 ? 49 8B F1 4C 89 44 24 ? 4C 8B F2 48 8B D9");
9098
ctx->mHookManager.CreateHook<&Item::appendFormattedHovertext>(_Item_appendFormattedHoverText, &Item_appendFormattedHovertext);
9199

0 commit comments

Comments
 (0)