Skip to content

Commit 34bc768

Browse files
committed
feat: support LeviLamina 1.2.0-rc.2
1 parent 1c7b71f commit 34bc768

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.11.0] - 2025-05-20
11+
12+
### Changed
13+
14+
- Refactored GUI API
15+
- Support LeviLamina 1.2.0-rc.2
16+
17+
### Fixed
18+
19+
- Fixed ll.import and ll.export for nodejs engine (#270) @xiaoqch
20+
- Fixed ang.toFacing (#271) @xiaoqch
21+
- Fixed entity.speed and player.speed (#184) @xiaoqch
22+
- Fixed mc.deletePlayerNbt @xiaoqch
23+
- Improved logging in NodeJs plugin loading @xiaoqch
24+
- Fixed return type for invalid dimension in mc.getBlock @xiaoqch
25+
1026
## [0.10.6] - 2025-04-27
1127

1228
### Added
@@ -838,7 +854,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
838854
[#261]: https://github.com/LiteLDev/LegacyScriptEngine/issues/261
839855
[#264]: https://github.com/LiteLDev/LegacyScriptEngine/issues/264
840856

841-
[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.10.6...HEAD
857+
[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.11.0...HEAD
858+
[0.11.0]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.10.6...v0.11.0
842859
[0.10.6]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.10.5...v0.10.6
843860
[0.10.5]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.10.4...v0.10.5
844861
[0.10.4]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.10.3...v0.10.4

src/legacy/api/PlayerAPI.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@
7171
#include "mc/util/BlockUtils.h"
7272
#include "mc/world/Container.h"
7373
#include "mc/world/Minecraft.h"
74-
#include "mc/world/SimpleContainer.h"
7574
#include "mc/world/actor/Actor.h"
7675
#include "mc/world/actor/ActorDamageByActorSource.h"
77-
#include "mc/world/actor/BuiltInActorComponents.h"
78-
#include "mc/world/actor/SynchedActorDataEntityWrapper.h"
7976
#include "mc/world/actor/ai/util/BossBarColor.h"
8077
#include "mc/world/actor/ai/util/BossEventUpdateType.h"
8178
#include "mc/world/actor/player/Inventory.h"
@@ -92,10 +89,8 @@
9289
#include "mc/world/effect/MobEffectInstance.h"
9390
#include "mc/world/item/ItemStack.h"
9491
#include "mc/world/level/BlockSource.h"
95-
#include "mc/world/level/ChunkPos.h"
9692
#include "mc/world/level/biome/Biome.h"
9793
#include "mc/world/level/block/Block.h"
98-
#include "mc/world/level/block/CachedComponentData.h"
9994
#include "mc/world/level/block/VanillaBlockTypeIds.h"
10095
#include "mc/world/level/dimension/Dimension.h"
10196
#include "mc/world/level/material/Material.h"
@@ -111,6 +106,8 @@
111106
#include "mc/world/scores/Scoreboard.h"
112107
#include "mc/world/scores/ScoreboardId.h"
113108

109+
SetScorePacket::SetScorePacket() = default;
110+
114111
//////////////////// Class Definition ////////////////////
115112

116113
ClassDefine<PlayerClass> PlayerClassBuilder =

src/lse/events/BlockEvents.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ LL_TYPE_INSTANCE_HOOK(
6464
if (*reinterpret_cast<void***>(this) != LevelContainerModel::$vftable())
6565
return origin(slotNumber, oldItem, newItem);
6666

67-
Player& player = mUnk84d147.as<Player&>();
6867
// Player::hasOpenContainer()
69-
if (player.mContainerManager) {
68+
if (mPlayer.mContainerManager) {
7069
if (!CallEvent(
7170
EVENT_TYPES::onContainerChange,
72-
PlayerClass::newPlayer(&player),
73-
BlockClass::newBlock(mUnk74419a.as<BlockPos>(), player.getDimensionId()),
71+
PlayerClass::newPlayer(&mPlayer),
72+
BlockClass::newBlock(mBlockPos, mPlayer.getDimensionId()),
7473
Number::newNumber(slotNumber + this->_getContainerOffset()),
7574
ItemClass::newItem(&const_cast<ItemStack&>(oldItem)),
7675
ItemClass::newItem(&const_cast<ItemStack&>(newItem))

tooth.json

Lines changed: 1 addition & 1 deletion
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/LegacyScriptEngine",
5-
"version": "0.10.6",
5+
"version": "0.11.0",
66
"info": {
77
"name": "LegacyScriptEngine",
88
"description": "A plugin engine for running LLSE plugins on LeviLamina",

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("levimc-repo https://github.com/LiteLDev/xmake-repo.git")
44

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

1111
add_requires("levibuildscript")

0 commit comments

Comments
 (0)