Fix Example Mods (Again)
This commit is contained in:
parent
88f59d951a
commit
e837610380
@ -15,7 +15,7 @@ HOOK(chat_handle_packet_send, void, (Minecraft *minecraft, ChatPacket *packet))
|
|||||||
if (out.length() > 0 && out[out.length() - 1] == '\n') {
|
if (out.length() > 0 && out[out.length() - 1] == '\n') {
|
||||||
out[out.length() - 1] = '\0';
|
out[out.length() - 1] = '\0';
|
||||||
}
|
}
|
||||||
gui->addMessage(&out);
|
gui->addMessage(out);
|
||||||
} else {
|
} else {
|
||||||
// Call Original Method
|
// Call Original Method
|
||||||
ensure_chat_handle_packet_send();
|
ensure_chat_handle_packet_send();
|
||||||
|
@ -32,7 +32,7 @@ static void Recipes_injection(Recipes *recipes) {
|
|||||||
.auxiliary = 0
|
.auxiliary = 0
|
||||||
};
|
};
|
||||||
std::vector<Recipes_Type> types = {type1, type2};
|
std::vector<Recipes_Type> types = {type1, type2};
|
||||||
recipes->addShapelessRecipe(&result, &types);
|
recipes->addShapelessRecipe(result, types);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom Furnace Recipes
|
// Custom Furnace Recipes
|
||||||
@ -43,7 +43,7 @@ static void FurnaceRecipes_injection(FurnaceRecipes *recipes) {
|
|||||||
.id = 246,
|
.id = 246,
|
||||||
.auxiliary = 0
|
.auxiliary = 0
|
||||||
};
|
};
|
||||||
recipes->addFurnaceRecipe(49, &result);
|
recipes->addFurnaceRecipe(49, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init
|
// Init
|
||||||
|
Loading…
Reference in New Issue
Block a user