Check If Patch Is Needed
This commit is contained in:
parent
c539c42de2
commit
554fed869e
@ -4,6 +4,7 @@ services:
|
|||||||
image: 'thebrokenrail/minecraft-pi:client'
|
image: 'thebrokenrail/minecraft-pi:client'
|
||||||
network_mode: 'host'
|
network_mode: 'host'
|
||||||
volumes:
|
volumes:
|
||||||
|
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
|
||||||
- '/tmp/.X11-unix:/tmp/.X11-unix'
|
- '/tmp/.X11-unix:/tmp/.X11-unix'
|
||||||
- '~/.minecraft-pi:/root/.minecraft'
|
- '~/.minecraft-pi:/root/.minecraft'
|
||||||
devices:
|
devices:
|
||||||
|
@ -4,6 +4,7 @@ services:
|
|||||||
image: 'thebrokenrail/minecraft-pi:client'
|
image: 'thebrokenrail/minecraft-pi:client'
|
||||||
network_mode: 'host'
|
network_mode: 'host'
|
||||||
volumes:
|
volumes:
|
||||||
|
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
|
||||||
- '/tmp/.X11-unix:/tmp/.X11-unix'
|
- '/tmp/.X11-unix:/tmp/.X11-unix'
|
||||||
- '/tmp/.virgl_test:/tmp/.virgl_test'
|
- '/tmp/.virgl_test:/tmp/.virgl_test'
|
||||||
- '~/.minecraft-pi:/root/.minecraft'
|
- '~/.minecraft-pi:/root/.minecraft'
|
||||||
|
@ -4,4 +4,5 @@ services:
|
|||||||
image: 'thebrokenrail/minecraft-pi:server'
|
image: 'thebrokenrail/minecraft-pi:server'
|
||||||
network_mode: 'host'
|
network_mode: 'host'
|
||||||
volumes:
|
volumes:
|
||||||
|
- /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static
|
||||||
- '${MCPI_ROOT}:/root/.minecraft'
|
- '${MCPI_ROOT}:/root/.minecraft'
|
||||||
|
@ -489,9 +489,6 @@ static void server_init() {
|
|||||||
signal(SIGINT, exit_handler);
|
signal(SIGINT, exit_handler);
|
||||||
// Print Chat To Log
|
// Print Chat To Log
|
||||||
overwrite_calls((void *) Gui_addMessage, (void *) Gui_addMessage_injection);
|
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
|
// Set Max Players
|
||||||
unsigned char max_players_patch[4] = {get_max_players(), 0x30, 0xa0, 0xe3};
|
unsigned char max_players_patch[4] = {get_max_players(), 0x30, 0xa0, 0xe3};
|
||||||
patch((void *) 0x166d0, max_players_patch);
|
patch((void *) 0x166d0, max_players_patch);
|
||||||
|
Loading…
Reference in New Issue
Block a user