Last Minute 2.2.8 Fix
minecraft-pi-reborn/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2021-11-14 13:37:51 -05:00
parent 472f5d67a5
commit 291e560c8f
3 changed files with 15 additions and 10 deletions

View File

@ -2,7 +2,7 @@
**2.2.8** **2.2.8**
* Add "Hide Chat Messages" Optional Feature Flag * Add "Hide Chat Messages" Optional Feature Flag
* Add "Remove Creative Restrictions" Optional Feature Flag * Add "Remove Creative Mode Restrictions" Optional Feature Flag
* Improve GLFW->SDL Mouse Motion Event Conversion * Improve GLFW->SDL Mouse Motion Event Conversion
* Performance Optimizations * Performance Optimizations
* Make Majority Of Server-Specific Logging Code Also Apply To The Client * Make Majority Of Server-Specific Logging Code Also Apply To The Client

View File

@ -8,7 +8,7 @@ TRUE Display Nametags By Default
TRUE Fix Sign Placement TRUE Fix Sign Placement
TRUE Show Block Outlines TRUE Show Block Outlines
FALSE Expand Creative Inventory FALSE Expand Creative Inventory
FALSE Remove Creative Restrictions FALSE Remove Creative Mode Restrictions
FALSE Peaceful Mode FALSE Peaceful Mode
TRUE Animated Water TRUE Animated Water
TRUE Remove Invalid Item Background TRUE Remove Invalid Item Background

View File

@ -66,18 +66,18 @@ void init_creative() {
} }
// Remove Creative Restrictions (Opening Chests, Crafting, Etc) // Remove Creative Restrictions (Opening Chests, Crafting, Etc)
if (feature_has("Remove Creative Restrictions", 0)) { if (feature_has("Remove Creative Mode Restrictions", 0)) {
unsigned char nop_patch[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop" unsigned char nop_patch[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop"
patch((void *) 0x1e3f4, nop_patch); // Remove Restrictions
unsigned char slot_count_patch[4] = {0x18, 0x00, 0x00, 0xea}; // "b 0x27110" patch((void *) 0x43ee8, nop_patch);
patch((void *) 0x270a8, slot_count_patch); patch((void *) 0x43f3c, nop_patch);
patch((void *) 0x43f8c, nop_patch);
patch((void *) 0x43fd8, nop_patch);
// Fix UI
patch((void *) 0x341c0, nop_patch); patch((void *) 0x341c0, nop_patch);
patch((void *) 0x3adb4, nop_patch); patch((void *) 0x3adb4, nop_patch);
patch((void *) 0x3b374, nop_patch); patch((void *) 0x3b374, nop_patch);
patch((void *) 0x43ee8, nop_patch); // Fix Inventory
patch((void *) 0x43f3c, nop_patch);
patch((void *) 0x43fd0, nop_patch);
patch((void *) 0x43fd8, nop_patch);
patch((void *) 0x8d080, nop_patch); patch((void *) 0x8d080, nop_patch);
patch((void *) 0x8d090, nop_patch); patch((void *) 0x8d090, nop_patch);
patch((void *) 0x91d48, nop_patch); patch((void *) 0x91d48, nop_patch);
@ -85,6 +85,11 @@ void init_creative() {
unsigned char FillingContainer_removeResource_creative_check_patch[4] = {0x03, 0x00, 0x53, 0xe1}; // "cmp r3, r3" unsigned char FillingContainer_removeResource_creative_check_patch[4] = {0x03, 0x00, 0x53, 0xe1}; // "cmp r3, r3"
patch((void *) 0x923c0, FillingContainer_removeResource_creative_check_patch); patch((void *) 0x923c0, FillingContainer_removeResource_creative_check_patch);
patch((void *) 0x92828, nop_patch); patch((void *) 0x92828, nop_patch);
// Display Slot Count
patch((void *) 0x1e3f4, nop_patch);
unsigned char slot_count_patch[4] = {0x18, 0x00, 0x00, 0xea}; // "b 0x27110"
patch((void *) 0x270a8, slot_count_patch);
patch((void *) 0x33954, nop_patch);
// Maximize Creative Inventory Stack Size // Maximize Creative Inventory Stack Size
unsigned char maximize_stack_patch[4] = {0xff, 0xc0, 0xa0, 0xe3}; // "mov r12, 0xff" unsigned char maximize_stack_patch[4] = {0xff, 0xc0, 0xa0, 0xe3}; // "mov r12, 0xff"
patch((void *) 0x8e104, maximize_stack_patch); patch((void *) 0x8e104, maximize_stack_patch);