Skip to content

Commit 562a5ac

Browse files
committed
fix: use BlockPos::ZERO as default map position in createMapSavedData
1 parent 586ee7b commit 562a5ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/endstone/core/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ MapView &EndstoneServer::createMap(const Dimension &dimension) const
658658
{
659659
auto &dim = static_cast<const EndstoneDimension &>(dimension).getHandle();
660660
auto &level = dim.getLevel();
661+
// TODO: should we use dimension spawn point instead of BlockPos::ZERO?
661662
// creates a new map at world spawn with the scale of 3, without tracking position and unlimited tracking
662-
const auto pos = dim.getSpawnPos();
663-
const auto &map = level.createMapSavedData(ActorUniqueID::INVALID_ID, pos, dim.getDimensionId(), 3);
663+
const auto &map = level.createMapSavedData(ActorUniqueID::INVALID_ID, BlockPos::ZERO, dim.getDimensionId(), 3);
664664
return map.getMapView();
665665
}
666666

0 commit comments

Comments
 (0)