Small Tweaks

This commit is contained in:
TheBrokenRail 2024-05-16 04:07:02 -04:00
parent f25a2adcef
commit 6cfc1a7e20
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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"