Fix worldgen desync (and add some symbols) #78
Loading…
Reference in New Issue
No description provided.
Delete Branch "bigjango13/minecraft-pi-reborn:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Aside from the symbols, this PR fixed a common bug where the client and server generate the world differently, and the chunk diff is not properly sent, resulting in ghost blocks. This is especially a problem when either side is using modded worldgen, such as caves.
This was reported to MCPI++ here: NoozAbooz/mcpi-reborn-extended#39.
Some of the symbols in this PR depend on minecraft-pi-reborn/symbol-processor#7
@ -575,0 +576,4 @@
unsigned char nop[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop"
patch((void *) 0x717c4, nop);
unsigned char mov_r3_ff[4] = {0xff, 0x30, 0xa0, 0xe3}; // "mov r3, #0xff"
patch((void *) 0x7178c, mov_r3_ff)
Does this have any impact on how long it takes to join a server? Also, should this be included in
misc
so it also applies to LAN games?Nope, iirc it's not even active until the joining screen is gone.
Good catch, fixed.