Fix Lighting In ArmorScreen
Some checks failed
CI / Build (AMD64) (push) Successful in 26m55s
CI / Build (ARM64) (push) Successful in 29m23s
CI / Build (ARMHF) (push) Failing after 16m17s
CI / Test (AMD64, Client) (push) Has been skipped
CI / Test (AMD64, Server) (push) Has been skipped
CI / Test (ARM64, Client) (push) Has been skipped
CI / Test (ARM64, Server) (push) Has been skipped
CI / Test (ARMHF, Client) (push) Has been skipped
CI / Test (ARMHF, Server) (push) Has been skipped
CI / Build Example Mods (push) Has been skipped
CI / Release (push) Has been skipped
Some checks failed
CI / Build (AMD64) (push) Successful in 26m55s
CI / Build (ARM64) (push) Successful in 29m23s
CI / Build (ARMHF) (push) Failing after 16m17s
CI / Test (AMD64, Client) (push) Has been skipped
CI / Test (AMD64, Server) (push) Has been skipped
CI / Test (ARM64, Client) (push) Has been skipped
CI / Test (ARM64, Server) (push) Has been skipped
CI / Test (ARMHF, Client) (push) Has been skipped
CI / Test (ARMHF, Server) (push) Has been skipped
CI / Build Example Mods (push) Has been skipped
CI / Release (push) Has been skipped
This commit is contained in:
parent
d011d76f20
commit
62d3512a38
@ -98,10 +98,13 @@ static void MobRenderer_renderNameTag_injection(MobRenderer_renderNameTag_t orig
|
||||
|
||||
// Armor Screen
|
||||
static void ArmorScreen_renderPlayer_injection(ArmorScreen_renderPlayer_t original, ArmorScreen *self, float param_1, float param_2) {
|
||||
lighting_turn_on();
|
||||
original(self, param_1, param_2);
|
||||
lighting_turn_off();
|
||||
}
|
||||
static void ArmorScreen_renderPlayer_glRotatef_injection(float angle, float x, float y, float z) {
|
||||
lighting_turn_on();
|
||||
media_glRotatef(angle, x, y, z);
|
||||
}
|
||||
|
||||
// Init
|
||||
void _init_lighting() {
|
||||
@ -120,4 +123,5 @@ void _init_lighting() {
|
||||
overwrite_call((void *) 0x65754, (void *) TntRenderer_render_TileRenderer_renderTile_injection);
|
||||
overwrite_calls(MobRenderer_renderNameTag, MobRenderer_renderNameTag_injection);
|
||||
overwrite_calls(ArmorScreen_renderPlayer, ArmorScreen_renderPlayer_injection);
|
||||
overwrite_call((void *) 0x29d88, (void *) ArmorScreen_renderPlayer_glRotatef_injection);
|
||||
}
|
Loading…
Reference in New Issue
Block a user