Update Processor

This commit is contained in:
TheBrokenRail 2024-09-21 02:54:11 -04:00
parent 5ca2a63b5e
commit 72eb1945cf
4 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 5d2b146b08f48bc0e185d224eb69cb718c62bf72
Subproject commit f72c4f0567c62897d74c734819c11705df0bf4ee

View File

@ -3,6 +3,6 @@
#include <symbols/minecraft.h>
extern "C" {
GuiComponent_blit_t get_blit_with_classic_hud_offset();
std::remove_reference_t<GuiComponent_blit_t> get_blit_with_classic_hud_offset();
int get_classic_hud_y_offset(Minecraft *minecraft);
}

View File

@ -26,7 +26,7 @@ static void Gui_renderHearts_GuiComponent_blit_hearts_injection(GuiComponent *co
// Call Original Method
component->blit(x_dest, y_dest, x_src, y_src, width_dest, height_dest, width_src, height_src);
}
GuiComponent_blit_t get_blit_with_classic_hud_offset() {
std::remove_reference_t<GuiComponent_blit_t> get_blit_with_classic_hud_offset() {
return use_classic_hud ? Gui_renderHearts_GuiComponent_blit_hearts_injection : GuiComponent_blit->get(false);
}
static void Gui_renderHearts_GuiComponent_blit_armor_injection(Gui *component, int32_t x_dest, int32_t y_dest, int32_t x_src, int32_t y_src, int32_t width_dest, int32_t height_dest, int32_t width_src, int32_t height_src) {

View File

@ -120,7 +120,7 @@ static void ServerPlayer_actuallyHurt_injection(ServerPlayer *player, const int3
Player_actuallyHurt_injection<Mob, ServerPlayer>(Mob_actuallyHurt->get(false), player, damage);
}
static void LocalPlayer_actuallyHurt_injection(LocalPlayer_actuallyHurt_t original, LocalPlayer *player, const int32_t damage) {
Player_actuallyHurt_injection(std::move(original), player, damage);
Player_actuallyHurt_injection(original, player, damage);
}
// Init