Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
2.5.3-1
Browse files Browse the repository at this point in the history
  • Loading branch information
NoozAbooz committed Jan 5, 2024
1 parent bb04db9 commit db11178
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Nooz, TheBrokenRail, Bigjango13, and other contributors
Copyright (c) 2024 Nooz, TheBrokenRail, Bigjango13, and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.3
2.5.3-1
9 changes: 9 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ Every new MCPI++ release starting from v2.2.11 is listed here.

This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres To [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.5.3-1] - 2024-1-05

### Changed
- Updated app icon

### Fixed
- Bug Casuing Blocks to Not Appear In Multiplayer
*

## [2.5.3] - 2023-12-26

### Added
Expand Down
Binary file added images/icon-old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion launcher/src/client/available-feature-flags
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ FALSE Disable Block Tinting
TRUE Disable Hostile AI In Creative Mode
TRUE Load Custom Skins
TRUE 3D Chest Model
TRUE Replace Block Highlight With Outline
TRUE Replace Block Highlight With Outline
TRUE Disable Multiplayer Chunk Compression
9 changes: 9 additions & 0 deletions mods/src/misc/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,15 @@ void init_misc() {
}
patch_address((void *) 0x115b48, (void *) ChestTileEntity_shouldSave_injection);

// Disable chunk compression in multiplayer; https://github.com/NoozAbooz/mcpi-reborn-extended/issues/39
if (feature_has("Disable Multiplayer Chunk Compression", server_auto)) {
unsigned char nop[4] = {0x00, 0xf0, 0x20, 0xe3}; // "nop"
patch((void *) 0x717c4, nop);

unsigned char mv_r3_ff[4] = {0xff, 0x30, 0xa0, 0xe3}; // "mov r3, #0xff"
patch((void *) 0x7178c, mv_r3_ff);
}

#ifndef MCPI_HEADLESS_MODE
// Replace Block Highlight With Outline
if (feature_has("Replace Block Highlight With Outline", server_disabled)) {
Expand Down
6 changes: 6 additions & 0 deletions mods/src/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static ServerProperties &get_server_properties() {
#define DEFAULT_WHITELIST "false"
#define DEFAULT_DEATH_MESSAGES "true"
#define DEFAULT_GENERATE_CAVES "true"
#define DEFAULT_DISABLE_COMPRESSION "true"

// Get World Name
static std::string get_world_name() {
Expand Down Expand Up @@ -497,6 +498,9 @@ static const char *get_features() {
if (get_server_properties().get_bool("generate-caves", DEFAULT_GENERATE_CAVES)) {
features += "Generate Caves|";
}
if (get_server_properties().get_bool("disable-compression", DEFAULT_DISABLE_COMPRESSION)) {
features += "Disable Multiplayer Chunk Compression|";
}
}
return features.c_str();
}
Expand Down Expand Up @@ -548,6 +552,8 @@ static void server_init() {
properties_file_output << "death-messages=" DEFAULT_DEATH_MESSAGES "\n";
properties_file_output << "# Generate Caves\n";
properties_file_output << "generate-caves=" DEFAULT_GENERATE_CAVES "\n";
properties_file_output << "# Disable Chunk Compression (helpful if blocks are missing)\n";
properties_file_output << "disable-compression=" DEFAULT_DISABLE_COMPRESSION "\n";
properties_file_output.close();
// Re-Open File
properties_file = std::ifstream(file);
Expand Down

0 comments on commit db11178

Please sign in to comment.