File tree 8 files changed +21
-11
lines changed
8 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 0.6.2] - 2024-04-14
9
+
10
+ ### Fixed
11
+
12
+ - Fix [ #101 ] [ #102 ]
13
+
8
14
## [ 0.6.1] - 2024-04-13
9
15
10
16
### Fixed
@@ -266,7 +272,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
266
272
[ #97 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/97
267
273
[ #99 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/99
268
274
[ #100 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/100
275
+ [ #101 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/101
276
+ [ #102 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/102
269
277
278
+ [ 0.6.2 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.6.1...v0.6.2
270
279
[ 0.6.1 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.6.0...v0.6.1
271
280
[ 0.6.0 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.5.4...v0.6.0
272
281
[ 0.5.4 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.5.3...v0.5.4
Original file line number Diff line number Diff line change 4
4
"type" : " native" ,
5
5
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
6
6
"author" : " LiteLDev" ,
7
- "version" : " 0.6.1 " ,
7
+ "version" : " 0.6.2 " ,
8
8
"dependencies" : [
9
9
{
10
10
"name" : " LegacyMoney"
Original file line number Diff line number Diff line change 21
21
#include < mc/nbt/CompoundTag.h>
22
22
#include < memory>
23
23
#include < string>
24
+ #include < string_view>
24
25
#include < vector>
25
26
26
27
using magic_enum::enum_cast;
@@ -1973,7 +1974,7 @@ Local<Value> NbtStatic::parseSNBT(const Arguments& args) {
1973
1974
1974
1975
try {
1975
1976
auto tag = CompoundTag::fromSnbt (args[0 ].toStr ());
1976
- if (tag.has_value ()) return NbtCompoundClass::pack (std::move (& tag. value ()));
1977
+ if (tag.has_value ()) return NbtCompoundClass::pack (std::move (tag-> clone ()));
1977
1978
else return Local<Value>();
1978
1979
}
1979
1980
CATCH (" Fail in parseSNBT!" );
@@ -1985,8 +1986,8 @@ Local<Value> NbtStatic::parseBinaryNBT(const Arguments& args) {
1985
1986
1986
1987
try {
1987
1988
auto data = args[0 ].asByteBuffer ();
1988
- auto tag = CompoundTag::fromBinaryNbt (data.describeUtf8 ( ));
1989
- if (tag.has_value ()) return NbtCompoundClass::pack (std::move (& tag. value ()));
1989
+ auto tag = CompoundTag::fromBinaryNbt (std::string_view (( char *) data.getRawBytes (), data. byteLength () ));
1990
+ if (tag.has_value ()) return NbtCompoundClass::pack (std::move (tag-> clone ()));
1990
1991
else return Local<Value>();
1991
1992
}
1992
1993
CATCH (" Fail in parseBinaryNBT!" );
Original file line number Diff line number Diff line change 1
1
{
2
2
"format_version" : 2 ,
3
3
"tooth" : " github.com/LiteLDev/LegacyScriptEngine" ,
4
- "version" : " 0.6.1 " ,
4
+ "version" : " 0.6.2 " ,
5
5
"info" : {
6
6
"name" : " LegacyScriptEngine" ,
7
7
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
12
12
]
13
13
},
14
14
"dependencies" : {
15
- "gitea.litebds.com/LiteLDev/legacy-script-engine-lua" : " 0.6.1 " ,
16
- "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs" : " 0.6.1 "
15
+ "gitea.litebds.com/LiteLDev/legacy-script-engine-lua" : " 0.6.2 " ,
16
+ "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs" : " 0.6.2 "
17
17
}
18
18
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"format_version" : 2 ,
3
3
"tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-lua" ,
4
- "version" : " 0.6.1 " ,
4
+ "version" : " 0.6.2 " ,
5
5
"info" : {
6
6
"name" : " LegacyScriptEngine with Lua backend" ,
7
7
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"format_version" : 2 ,
3
3
"tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs" ,
4
- "version" : " 0.6.1 " ,
4
+ "version" : " 0.6.2 " ,
5
5
"info" : {
6
6
"name" : " LegacyScriptEngine with NodeJs backend" ,
7
7
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"format_version" : 2 ,
3
3
"tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-python" ,
4
- "version" : " 0.6.1 " ,
4
+ "version" : " 0.6.2 " ,
5
5
"info" : {
6
6
"name" : " LegacyScriptEngine with Python backend" ,
7
7
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"format_version" : 2 ,
3
3
"tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs" ,
4
- "version" : " 0.6.1 " ,
4
+ "version" : " 0.6.2 " ,
5
5
"info" : {
6
6
"name" : " LegacyScriptEngine with QuickJs backend" ,
7
7
"description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
You can’t perform that action at this time.
0 commit comments