Add "Disable Hosting LAN Worlds"
This commit is contained in:
parent
e0ebc7fc32
commit
c1377d4f2a
@ -31,3 +31,4 @@ TRUE Implement Sound Engine
|
|||||||
TRUE Close Current Screen On Death
|
TRUE Close Current Screen On Death
|
||||||
FALSE Disable Raw Mouse Motion (Not Recommended)
|
FALSE Disable Raw Mouse Motion (Not Recommended)
|
||||||
TRUE Fix Furnace Not Checking Item Auxiliary
|
TRUE Fix Furnace Not Checking Item Auxiliary
|
||||||
|
FALSE Disable Hosting LAN Worlds
|
||||||
|
@ -212,7 +212,7 @@ void init_misc() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fix Furnace Not Checking Item Auxiliary When Inserting New Item
|
// Fix Furnace Not Checking Item Auxiliary When Inserting New Item
|
||||||
if (feature_has("Fix Furnace Not Checking Item Auxiliary", 1)) {
|
if (feature_has("Fix Furnace Not Checking Item Auxiliary", 0)) {
|
||||||
overwrite_calls((void *) FurnaceScreen_handleAddItem, (void *) FurnaceScreen_handleAddItem_injection);
|
overwrite_calls((void *) FurnaceScreen_handleAddItem, (void *) FurnaceScreen_handleAddItem_injection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ static int peaceful_mode;
|
|||||||
static int anaglyph;
|
static int anaglyph;
|
||||||
static int smooth_lighting;
|
static int smooth_lighting;
|
||||||
static int render_distance;
|
static int render_distance;
|
||||||
|
static int server_visible;
|
||||||
// Configure Options
|
// Configure Options
|
||||||
static void Minecraft_init_injection(unsigned char *this) {
|
static void Minecraft_init_injection(unsigned char *this) {
|
||||||
// Call Original Method
|
// Call Original Method
|
||||||
@ -64,6 +65,8 @@ static void Minecraft_init_injection(unsigned char *this) {
|
|||||||
*(options + Options_ambient_occlusion_property_offset) = smooth_lighting;
|
*(options + Options_ambient_occlusion_property_offset) = smooth_lighting;
|
||||||
// Render Distance
|
// Render Distance
|
||||||
*(int32_t *) (options + Options_render_distance_property_offset) = render_distance;
|
*(int32_t *) (options + Options_render_distance_property_offset) = render_distance;
|
||||||
|
// Server Visible
|
||||||
|
*(options + Options_server_visible_property_offset) = server_visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init
|
// Init
|
||||||
@ -86,6 +89,8 @@ void init_options() {
|
|||||||
#else // #ifndef MCPI_SERVER_MODE
|
#else // #ifndef MCPI_SERVER_MODE
|
||||||
render_distance = 3;
|
render_distance = 3;
|
||||||
#endif // #ifndef MCPI_SERVER_MODE
|
#endif // #ifndef MCPI_SERVER_MODE
|
||||||
|
// Server Visible
|
||||||
|
server_visible = !feature_has("Disable Hosting LAN Worlds", 0);
|
||||||
|
|
||||||
// Set Options
|
// Set Options
|
||||||
overwrite_calls((void *) Minecraft_init, (void *) Minecraft_init_injection);
|
overwrite_calls((void *) Minecraft_init, (void *) Minecraft_init_injection);
|
||||||
|
@ -243,6 +243,7 @@ static uint32_t Options_third_person_property_offset = 0xed; // unsigned char /
|
|||||||
static uint32_t Options_render_distance_property_offset = 0x10; // int32_t
|
static uint32_t Options_render_distance_property_offset = 0x10; // int32_t
|
||||||
static uint32_t Options_sound_property_offset = 0x4; // int32_t
|
static uint32_t Options_sound_property_offset = 0x4; // int32_t
|
||||||
static uint32_t Options_debug_property_offset = 0xee; // unsigned char / bool
|
static uint32_t Options_debug_property_offset = 0xee; // unsigned char / bool
|
||||||
|
static uint32_t Options_server_visible_property_offset = 0x104; // unsigned char / bool
|
||||||
|
|
||||||
// MouseBuildInput
|
// MouseBuildInput
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user