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 84e5eaa commit 56413f1Copy full SHA for 56413f1
src/legacy/api/PlayerAPI.cpp
@@ -1659,8 +1659,8 @@ Local<Value> PlayerClass::getRespawnPosition(const Arguments& args) {
1659
try {
1660
Player* player = get();
1661
if (!player) return Local<Value>();
1662
- BlockPos position = player->getSpawnPosition();
1663
- DimensionType dim = player->getSpawnDimension();
+ BlockPos position = player->getExpectedSpawnPosition();
+ DimensionType dim = player->getExpectedSpawnDimensionId();
1664
return IntPos::newPos(position, dim);
1665
}
1666
CATCH("Fail in getRespawnPosition!")
0 commit comments