File tree Expand file tree Collapse file tree 8 files changed +21
-11
lines changed Expand file tree Collapse file tree 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.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.6.2] - 2024-04-14
9+
10+ ### Fixed
11+
12+ - Fix [ #101 ] [ #102 ]
13+
814## [ 0.6.1] - 2024-04-13
915
1016### Fixed
@@ -266,7 +272,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
266272[ #97 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/97
267273[ #99 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/99
268274[ #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
269277
278+ [ 0.6.2 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.6.1...v0.6.2
270279[ 0.6.1 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.6.0...v0.6.1
271280[ 0.6.0 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.5.4...v0.6.0
272281[ 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 44 "type" : " native" ,
55 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
66 "author" : " LiteLDev" ,
7- "version" : " 0.6.1 " ,
7+ "version" : " 0.6.2 " ,
88 "dependencies" : [
99 {
1010 "name" : " LegacyMoney"
Original file line number Diff line number Diff line change 2121#include < mc/nbt/CompoundTag.h>
2222#include < memory>
2323#include < string>
24+ #include < string_view>
2425#include < vector>
2526
2627using magic_enum::enum_cast;
@@ -1973,7 +1974,7 @@ Local<Value> NbtStatic::parseSNBT(const Arguments& args) {
19731974
19741975 try {
19751976 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 ()));
19771978 else return Local<Value>();
19781979 }
19791980 CATCH (" Fail in parseSNBT!" );
@@ -1985,8 +1986,8 @@ Local<Value> NbtStatic::parseBinaryNBT(const Arguments& args) {
19851986
19861987 try {
19871988 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 ()));
19901991 else return Local<Value>();
19911992 }
19921993 CATCH (" Fail in parseBinaryNBT!" );
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " github.com/LiteLDev/LegacyScriptEngine" ,
4- "version" : " 0.6.1 " ,
4+ "version" : " 0.6.2 " ,
55 "info" : {
66 "name" : " LegacyScriptEngine" ,
77 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
1212 ]
1313 },
1414 "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 "
1717 }
1818}
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-lua" ,
4- "version" : " 0.6.1 " ,
4+ "version" : " 0.6.2 " ,
55 "info" : {
66 "name" : " LegacyScriptEngine with Lua backend" ,
77 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs" ,
4- "version" : " 0.6.1 " ,
4+ "version" : " 0.6.2 " ,
55 "info" : {
66 "name" : " LegacyScriptEngine with NodeJs backend" ,
77 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-python" ,
4- "version" : " 0.6.1 " ,
4+ "version" : " 0.6.2 " ,
55 "info" : {
66 "name" : " LegacyScriptEngine with Python backend" ,
77 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
Original file line number Diff line number Diff line change 11{
22 "format_version" : 2 ,
33 "tooth" : " gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs" ,
4- "version" : " 0.6.1 " ,
4+ "version" : " 0.6.2 " ,
55 "info" : {
66 "name" : " LegacyScriptEngine with QuickJs backend" ,
77 "description" : " A plugin engine for running LLSE plugins on LeviLamina" ,
You can’t perform that action at this time.
0 commit comments