2021-01-27 21:26:19 +00:00
|
|
|
#include <libreborn/libreborn.h>
|
2020-12-02 23:18:49 +00:00
|
|
|
|
|
|
|
#include "../feature/feature.h"
|
|
|
|
#include "misc.h"
|
|
|
|
#include "../init/init.h"
|
|
|
|
|
|
|
|
#include "../minecraft.h"
|
|
|
|
|
|
|
|
void init_misc() {
|
|
|
|
if (feature_has("Remove Invalid Item Background")) {
|
|
|
|
// Remove Invalid Item Background (A Red Background That Appears For Items That Are Not Included In The gui_blocks Atlas)
|
|
|
|
unsigned char invalid_item_background_patch[4] = {0x00, 0xf0, 0x20, 0xe3};
|
|
|
|
patch((void *) 0x63c98, invalid_item_background_patch);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Init C++
|
|
|
|
init_misc_cpp();
|
|
|
|
}
|