Update Processor
This commit is contained in:
parent
5ca2a63b5e
commit
72eb1945cf
2
dependencies/symbol-processor/src
vendored
2
dependencies/symbol-processor/src
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 5d2b146b08f48bc0e185d224eb69cb718c62bf72
|
Subproject commit f72c4f0567c62897d74c734819c11705df0bf4ee
|
@ -3,6 +3,6 @@
|
|||||||
#include <symbols/minecraft.h>
|
#include <symbols/minecraft.h>
|
||||||
|
|
||||||
extern "C" {
|
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);
|
int get_classic_hud_y_offset(Minecraft *minecraft);
|
||||||
}
|
}
|
@ -26,7 +26,7 @@ static void Gui_renderHearts_GuiComponent_blit_hearts_injection(GuiComponent *co
|
|||||||
// Call Original Method
|
// Call Original Method
|
||||||
component->blit(x_dest, y_dest, x_src, y_src, width_dest, height_dest, width_src, height_src);
|
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);
|
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) {
|
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) {
|
||||||
|
@ -120,7 +120,7 @@ static void ServerPlayer_actuallyHurt_injection(ServerPlayer *player, const int3
|
|||||||
Player_actuallyHurt_injection<Mob, ServerPlayer>(Mob_actuallyHurt->get(false), player, damage);
|
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) {
|
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
|
// Init
|
||||||
|
Loading…
Reference in New Issue
Block a user