Fix Example Mod (Again)
CI / Build (AMD64, Server) (push) Successful in 12m25s Details
CI / Build (AMD64, Client) (push) Successful in 12m48s Details
CI / Build (ARM64, Server) (push) Successful in 12m48s Details
CI / Build (ARM64, Client) (push) Successful in 13m18s Details
CI / Build (ARMHF, Server) (push) Successful in 9m15s Details
CI / Build (ARMHF, Client) (push) Successful in 12m53s Details
CI / Test (Client) (push) Successful in 15m7s Details
CI / Test (Server) (push) Successful in 12m23s Details
CI / Release (push) Has been skipped Details
CI / Build Example Mods (push) Successful in 7m44s Details

This commit is contained in:
TheBrokenRail 2024-05-05 02:17:46 -04:00
parent f3f8e342d8
commit 4523935d62
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
#include <mods/misc/misc.h>
// The Actual Mod
HOOK(_Z23chat_handle_packet_sendP9MinecraftP10ChatPacket, void, (Minecraft *minecraft, ChatPacket *packet)) {
HOOK(chat_handle_packet_send, void, (Minecraft *minecraft, ChatPacket *packet)) {
// Get Message
const char *message = packet->message.c_str();
if (message[0] == '/') {
@ -18,7 +18,7 @@ HOOK(_Z23chat_handle_packet_sendP9MinecraftP10ChatPacket, void, (Minecraft *mine
gui->addMessage(&out);
} else {
// Call Original Method
ensure__Z23chat_handle_packet_sendP9MinecraftP10ChatPacket();
real__Z23chat_handle_packet_sendP9MinecraftP10ChatPacket(minecraft, packet);
ensure_chat_handle_packet_send();
real_chat_handle_packet_send(minecraft, packet);
}
}