Check If Patch Is Needed

This commit is contained in:
TheBrokenRail 2020-12-09 22:19:18 -05:00
parent c539c42de2
commit 554fed869e
4 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,7 @@ services:
image: 'thebrokenrail/minecraft-pi:client'
network_mode: 'host'
volumes:
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
- '/tmp/.X11-unix:/tmp/.X11-unix'
- '~/.minecraft-pi:/root/.minecraft'
devices:

View File

@ -4,6 +4,7 @@ services:
image: 'thebrokenrail/minecraft-pi:client'
network_mode: 'host'
volumes:
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
- '/tmp/.X11-unix:/tmp/.X11-unix'
- '/tmp/.virgl_test:/tmp/.virgl_test'
- '~/.minecraft-pi:/root/.minecraft'

View File

@ -4,4 +4,5 @@ services:
image: 'thebrokenrail/minecraft-pi:server'
network_mode: 'host'
volumes:
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
- '${MCPI_ROOT}:/root/.minecraft'

View File

@ -489,9 +489,6 @@ static void server_init() {
signal(SIGINT, exit_handler);
// Print Chat To Log
overwrite_calls((void *) Gui_addMessage, (void *) Gui_addMessage_injection);
// Allow All IPs To Join
unsigned char allow_all_ip_patch[4] = {0x00, 0xf0, 0x20, 0xe3};
patch((void *) 0xe1f6c, allow_all_ip_patch);
// Set Max Players
unsigned char max_players_patch[4] = {get_max_players(), 0x30, 0xa0, 0xe3};
patch((void *) 0x166d0, max_players_patch);