diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c52e532369..6e876006f3 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 838f39fb2e..f2ec82a2aa 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 9f7d8017e4..ae5aaab9ae 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"