From e837610380eeb41dbc0e25f002320acd441c6372 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 15 Jul 2024 03:09:19 -0400 Subject: [PATCH] Fix Example Mods (Again) --- example-mods/chat-commands/chat-commands.cpp | 2 +- example-mods/recipes/recipes.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example-mods/chat-commands/chat-commands.cpp b/example-mods/chat-commands/chat-commands.cpp index a7322619cc..20c2ccd8cd 100644 --- a/example-mods/chat-commands/chat-commands.cpp +++ b/example-mods/chat-commands/chat-commands.cpp @@ -15,7 +15,7 @@ HOOK(chat_handle_packet_send, void, (Minecraft *minecraft, ChatPacket *packet)) if (out.length() > 0 && out[out.length() - 1] == '\n') { out[out.length() - 1] = '\0'; } - gui->addMessage(&out); + gui->addMessage(out); } else { // Call Original Method ensure_chat_handle_packet_send(); diff --git a/example-mods/recipes/recipes.cpp b/example-mods/recipes/recipes.cpp index a94428715a..5c1d559d5d 100644 --- a/example-mods/recipes/recipes.cpp +++ b/example-mods/recipes/recipes.cpp @@ -32,7 +32,7 @@ static void Recipes_injection(Recipes *recipes) { .auxiliary = 0 }; std::vector types = {type1, type2}; - recipes->addShapelessRecipe(&result, &types); + recipes->addShapelessRecipe(result, types); } // Custom Furnace Recipes @@ -43,7 +43,7 @@ static void FurnaceRecipes_injection(FurnaceRecipes *recipes) { .id = 246, .auxiliary = 0 }; - recipes->addFurnaceRecipe(49, &result); + recipes->addFurnaceRecipe(49, result); } // Init