From 6cfc1a7e20128bcff6957e055d977a2a9694291c Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 16 May 2024 04:07:02 -0400 Subject: [PATCH] Small Tweaks --- docs/CHANGELOG.md | 1 + launcher/src/client/available-feature-flags | 2 +- mods/src/misc/misc.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c52e53236..6e876006f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -23,6 +23,7 @@ * `Force Survival Mode Inventory UI` (Disabled By Default) * `Force Survival Mode Inventory Behavior` (Disabled By Default) * `Maximize Creative Mode Inventory Stack Size` (Disabled By Default) +* Rename `Disable Buggy Held Item Caching` Feature Flag To `Fix Held Item Caching` * Add Milk Buckets * Implement Crafting Remainders * Improve Death Messages diff --git a/launcher/src/client/available-feature-flags b/launcher/src/client/available-feature-flags index 838f39fb2..f2ec82a2a 100644 --- a/launcher/src/client/available-feature-flags +++ b/launcher/src/client/available-feature-flags @@ -64,6 +64,6 @@ FALSE Food Overlay TRUE Add Splashes TRUE Display Date In Select World Screen TRUE Optimized Chunk Sorting -TRUE Disable Buggy Held Item Caching +TRUE Fix Held Item Caching TRUE Add Reborn Info To Options FALSE Track FPS \ No newline at end of file diff --git a/mods/src/misc/misc.cpp b/mods/src/misc/misc.cpp index 9f7d8017e..ae5aaab9a 100644 --- a/mods/src/misc/misc.cpp +++ b/mods/src/misc/misc.cpp @@ -578,7 +578,7 @@ static void glColor4f_injection(__attribute__((unused)) GLfloat red, __attribute line_width = strtof(custom_line_width, nullptr); } else { // Guess - line_width = 2 / Gui_InvGuiScale; + line_width = 1.5f / Gui_InvGuiScale; } // Clamp Line Width float range[2]; @@ -959,7 +959,7 @@ void init_misc() { overwrite_calls(Player_stopUsingItem, Player_stopUsingItem_injection); // Fix invalid ItemInHandRenderer texture cache - if (feature_has("Disable Buggy Held Item Caching", server_disabled)) { + if (feature_has("Fix Held Item Caching", server_disabled)) { // This works by forcing MCPI to always use the branch that enables using the // cache, but then patches that as well to do the opposite uchar ensure_equal_patch[] = {0x07, 0x00, 0x57, 0xe1}; // "cmp r7, r7"