Hide Block Outline When GUI Is Hidden
All checks were successful
CI / Build (AMD64) (push) Successful in 21m34s
CI / Build (ARM64) (push) Successful in 22m47s
CI / Build (ARMHF) (push) Successful in 12m18s
CI / Test (AMD64, Server) (push) Successful in 2m23s
CI / Build Example Mods (push) Successful in 1m42s
CI / Test (ARM64, Client) (push) Successful in 4m46s
CI / Test (AMD64, Client) (push) Successful in 6m23s
CI / Test (ARM64, Server) (push) Successful in 1m42s
CI / Test (ARMHF, Client) (push) Successful in 4m57s
CI / Test (ARMHF, Server) (push) Successful in 1m53s
CI / Release (push) Has been skipped

This commit is contained in:
TheBrokenRail 2024-09-23 18:52:15 -04:00
parent 00d193e732
commit be3ccae7c1
3 changed files with 12 additions and 1 deletions

View File

@ -43,6 +43,7 @@
* `Allow High-Resolution Title` (Enabled By Default)
* `Improved Classic Title Positioning` (Enabled By Default)
* `Use Updated Title` (Enabled By Default)
* `Hide Block Outline When GUI Is Hidden` (Enabled By Default)
* Existing Functionality (All Enabled By Default)
* `Fix Screen Rendering When Hiding HUD`
* `Sanitize Usernames`

View File

@ -106,3 +106,4 @@ TRUE Property Scale Animated Textures
TRUE Allow High-Resolution Title
TRUE Improved Classic Title Positioning
TRUE Use Updated Title
TRUE Hide Block Outline When GUI Is Hidden

View File

@ -288,6 +288,15 @@ void _init_misc_graphics() {
overwrite_call((void *) 0x4d764, (void *) LevelRenderer_render_AABB_glColor4f_injection);
}
// Properly Hide Block Outline
if (feature_has("Hide Block Outline When GUI Is Hidden", server_disabled)) {
overwrite_calls(LevelRenderer_renderHitSelect, [](LevelRenderer_renderHitSelect_t original, LevelRenderer *self, Player *player, const HitResult &hit_result, const int i, void *vp, const float f) {
if (!self->minecraft->options.hide_gui) {
original(self, player, hit_result, i, vp, f);
}
});
}
// Java Light Ramp
if (feature_has("Use Java Beta 1.3 Light Ramp", server_disabled)) {
overwrite_calls(Dimension_updateLightRamp, Dimension_updateLightRamp_injection);