Skip to content

Commit 66d3373

Browse files
committed
fix: fix #45
1 parent 086c379 commit 66d3373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/api/PlayerAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ Local<Value> PlayerClass::getLastDeathPos() {
673673
}
674674
auto pos = player->getLastDeathPos();
675675
auto dim = player->getLastDeathDimension();
676-
if (dim == -1) {
676+
if (!pos.has_value() && !dim.has_value() && dim == -1) {
677677
return Local<Value>();
678678
}
679679
return IntPos::newPos(pos.value(), dim->id);

0 commit comments

Comments
 (0)