Fix Insta-Mine When Using "Fix Attacking" In Creative Mode

This commit is contained in:
TheBrokenRail 2020-10-03 22:17:56 -04:00
parent f3d6149405
commit ff4ebdf279

View File

@ -164,8 +164,10 @@ __attribute__((constructor)) static void init() {
if (has_feature("Fix Attacking")) {
// Allow Attacking Mobs
unsigned char patch_data_6[4] = {0x00, 0xf0, 0x20, 0xe3};
patch((void *) 0x162d4, patch_data_6);
unsigned char attacking_patch[4] = {0x00, 0xf0, 0x20, 0xe3};
patch((void *) 0x162d4, attacking_patch);
unsigned char instamine_patch[4] = {0x52, 0x00, 0x00, 0xea};
patch((void *) 0x15ac0, instamine_patch);
}
if (has_feature("Mob Spawning")) {