We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086c379 commit 66d3373Copy full SHA for 66d3373
src/legacy/api/PlayerAPI.cpp
@@ -673,7 +673,7 @@ Local<Value> PlayerClass::getLastDeathPos() {
673
}
674
auto pos = player->getLastDeathPos();
675
auto dim = player->getLastDeathDimension();
676
- if (dim == -1) {
+ if (!pos.has_value() && !dim.has_value() && dim == -1) {
677
return Local<Value>();
678
679
return IntPos::newPos(pos.value(), dim->id);
0 commit comments