Skip to content

Commit 19e1092

Browse files
committed
fix: fix command parameter result
1 parent 8316610 commit 19e1092

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/legacy/api/CommandAPI.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ Local<Value> convertResult(ParamStorageType const& result, CommandOrigin const&
170170
if (result.hold(ParamKind::Kind::String)) {
171171
return String::newString(std::get<std::string>(result.value()));
172172
}
173+
if (result.hold(ParamKind::Kind::Dimension)) {
174+
return Number::newNumber(std::get<DimensionType>(result.value()).id);
175+
}
173176
return {};
174177
}
175178

0 commit comments

Comments
 (0)