Skip to content

Commit 44c7e07

Browse files
committed
feat: adapt 1.21.80.3 finish
1 parent 03587df commit 44c7e07

File tree

7 files changed

+29
-48
lines changed

7 files changed

+29
-48
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.8.0] - 2025-06-11
11+
12+
### Changed
13+
14+
- Adapt to LeviLamina 1.3.0(BDS-1.21.80.3)
15+
1016
## [0.7.0] - 2025-06-02
1117

1218
### Changed
@@ -96,7 +102,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
96102

97103
- Release the first version
98104

99-
[Unreleased]: https://github.com/LiteLDev/MoreDimensions/compare/v0.7.0...HEAD
105+
[Unreleased]: https://github.com/LiteLDev/MoreDimensions/compare/v0.8.0...HEAD
106+
[0.8.0]: https://github.com/LiteLDev/MoreDimensions/compare/v0.7.0...v0.8.0
100107
[0.7.0]: https://github.com/LiteLDev/MoreDimensions/compare/v0.6.1...v0.7.0
101108
[0.6.1]: https://github.com/LiteLDev/MoreDimensions/compare/v0.6.0...v0.6.1
102109
[0.6.0]: https://github.com/LiteLDev/MoreDimensions/compare/v0.5.0...v0.6.0

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ lip install github.com/LiteLDev/MoreDimensions
1616

1717
Wiki: [Chinese and English](https://github.com/LiteLDev/MoreDimensions/wiki)
1818

19+
## Quick Experience
20+
21+
You can download the [**test artifacts**](https://github.com/LiteLDev/MoreDimensions/actions/workflows/test_build.yml) in Action.
22+
23+
It will create all Vanilla dimensions (Void, OverWorld, Nether, The End, Flat), as well as three custom dimensions
24+
25+
Use the commands provided by LeviLamina. You can enter these dimensions
26+
27+
```
28+
tpdim ~ ~ ~ [dimension name]
29+
```
30+
31+
About these dimensions, you can see it in https://github.com/LiteLDev/MoreDimensions/blob/develop/src/test/TestCustomDimension.cpp
32+
1933
## Contributing
2034

2135
Ask questions by creating an issue.

src/more_dimensions/api/dimension/SimpleCustomDimension.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ namespace more_dimensions {
5151
namespace {
5252
using namespace ll::memory_literals;
5353

54-
DWORD overworld_addStructureFeatures_rva = 0x2C6640;
55-
DWORD nethrer_addStructureFeatures_rva = 0x2C4F90;
54+
DWORD overworld_addStructureFeatures_rva = 0x044F390;
55+
DWORD nethrer_addStructureFeatures_rva = 0x044DC00;
5656

5757
HMODULE hModule = GetModuleHandle(L"bedrock_server_mod.exe");
5858

src/more_dimensions/core/dimension/FakeDimensionId.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -302,27 +302,6 @@ LL_TYPE_INSTANCE_HOOK(
302302
// return origin(dimId, pos, respawn, loadingScreenId);
303303
// }
304304

305-
LL_TYPE_INSTANCE_HOOK(
306-
ChangeDimensionPacketHandler,
307-
HookPriority::Normal,
308-
ChangeDimensionPacket,
309-
&ChangeDimensionPacket::$write,
310-
void,
311-
BinaryStream& stream
312-
) {
313-
stream.writeVarInt(
314-
this->mDimensionId->id,
315-
"Dimension ID",
316-
"Currently supported: (0 -> Overworld, 1 -> Nether, 2 -> The End, 3 -> Undefined)");
317-
stream.writeFloat(this->mPos->x, "X", 0LL);
318-
stream.writeFloat(this->mPos->y, "Y", 0LL);
319-
stream.writeFloat(this->mPos->z, "Z", 0LL);
320-
stream.writeBool(this->mRespawn, "Respawn", 0LL);
321-
stream.writeBool(this->mLoadingScreenId->mValue.has_value(), "Has Value", "If true, follow with appropriate data type, otherwise nothing");
322-
if (this->mLoadingScreenId->mValue.has_value())
323-
stream.writeUnsignedInt(this->mLoadingScreenId->mValue.value(), "Unsigned Int", 0LL);
324-
}
325-
326305
// SubChunkPacket and SubChunkRequestPacket
327306
LL_TYPE_INSTANCE_HOOK(
328307
SubChunkPacketHandler,
@@ -449,7 +428,6 @@ using HookReg = ll::memory::HookRegistrar<
449428
sendpackethook::LoopbackPacketSendersendToClientHandler1,
450429
sendpackethook::LoopbackPacketSendersendToClientHandler2,
451430
sendpackethook::LoopbackPacketSendersendToClientsHandler,
452-
// sendpackethook::ChangeDimensionPacketHandler,
453431
sendpackethook::SubChunkPacketHandler,
454432
sendpackethook::SpawnParticleEffectPacketHandler,
455433
sendpackethook::StartGamePacketHandler,

src/more_dimensions/core/dimension/MoreDimensionsPatch.h

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ std::vector<AddressAndReg> data = {
5151
{0x0d013f0, 0x0d01657, 0x0d01683, {0x89, 0xcf} },
5252
{0x10fef90, 0x10ff015, 0x10ff04d, {0x89, 0xc8} },
5353
{0x25824e0, 0x2582560, 0x25825c2, {0x89, 0xc8} },
54-
{0x2a572d0, 0x25687a5, 0x25687ea, {0x89, 0x8e, 0xe0, 0xa, 0x0, 0x0}},
54+
{0x25681d0, 0x25687a5, 0x25687ea, {0x89, 0x8e, 0xe0, 0xa, 0x0, 0x0}},
5555
{0x2d2c450, 0x2d2c5c1, 0x2d2c5ed, {0x89, 0xc8} },
5656
{0x2d2fcd0, 0x2d2fe6e, 0x2d2fe9a, {0x89, 0xc8} },
5757
{0x31ff0b0, 0x31ff164, 0x31ff190, {0x89, 0xc8} },
@@ -133,21 +133,3 @@ void injectNaticeCode() {
133133
pl_notice(funcp);
134134
};
135135
};
136-
137-
// BOOL APIENTRY DllMain(HMODULE hModule,
138-
// DWORD ul_reason_for_call,
139-
// LPVOID lpReserved
140-
// )
141-
// {
142-
// switch (ul_reason_for_call)
143-
// {
144-
// case DLL_PROCESS_ATTACH:
145-
// injectNaticeCode();
146-
// break;
147-
// case DLL_THREAD_ATTACH:
148-
// case DLL_THREAD_DETACH:
149-
// case DLL_PROCESS_DETACH:
150-
// break;
151-
// }
152-
// return TRUE;
153-
// }

tooth.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"format_version": 3,
33
"format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d",
44
"tooth": "github.com/LiteLDev/MoreDimensions",
5-
"version": "0.7.0",
5+
"version": "0.8.0",
66
"info": {
77
"name": "MoreDimensions",
88
"description": "More than three dimensions on BDS!",
@@ -23,7 +23,7 @@
2323
"https://{{tooth}}/releases/download/v{{version}}/more-dimensions-windows-x64-v{{version}}.zip"
2424
],
2525
"dependencies": {
26-
"github.com/LiteLDev/LeviLamina": "1.2.*"
26+
"github.com/LiteLDev/LeviLamina": "1.3.*"
2727
},
2828
"placements": [
2929
{

xmake.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ add_rules("mode.debug", "mode.release")
33
add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
44

55
if is_config("target_type", "server") then
6-
add_requires("levilamina ef5b1d2541205b8eb806729237e0e5f30e0b7c90", {configs = {target_type = "server"}})
6+
add_requires("levilamina 1.3.0", {configs = {target_type = "server"}})
77
else
8-
add_requires("levilamina 1.2.0", {configs = {target_type = "client"}})
8+
add_requires("levilamina 1.3.0", {configs = {target_type = "client"}})
99
end
1010

1111
add_requires("levibuildscript")

0 commit comments

Comments
 (0)