mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-10-08 07:10:12 +00:00
Fixed halved NPC distance and renamed config option to chunksize.
This commit is contained in:
@@ -61,7 +61,7 @@ bool ChunkManager::checkChunk(std::pair<int, int> chunk) {
|
||||
}
|
||||
|
||||
std::pair<int, int> ChunkManager::grabChunk(int posX, int posY) {
|
||||
return std::make_pair<int, int>(posX / (settings::PLAYERDISTANCE / 3), posY / (settings::PLAYERDISTANCE / 3));
|
||||
return std::make_pair<int, int>(posX / (settings::CHUNKSIZE / 3), posY / (settings::CHUNKSIZE / 3));
|
||||
}
|
||||
|
||||
std::vector<Chunk*> ChunkManager::grabChunks(std::pair<int, int> chunk) {
|
||||
@@ -103,4 +103,4 @@ std::vector<Chunk*> ChunkManager::getDeltaChunks(std::vector<Chunk*> from, std::
|
||||
}
|
||||
|
||||
return delta;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user