summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Block.cpp4
-rw-r--r--src/Block.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Block.cpp b/src/Block.cpp
index b81a762..85870f6 100644
--- a/src/Block.cpp
+++ b/src/Block.cpp
@@ -11,12 +11,12 @@ static std::map<BlockId, size_t> staticBlockInfo;
BlockInfo WTFBlock{ true, "", "" };
void RegisterStaticBlockInfo(BlockId blockId, BlockInfo blockInfo) {
- //NOTE: It can be made thread-safe using incrementer
+ //NOTE: It can be made thread-safe by using atomic incrementer
staticBlockInfo[blockId] = blocks.size();
blocks.push_back(blockInfo);
}
-BlockInfo* GetBlockInfo(BlockId blockId, Vector blockPos) {
+BlockInfo* GetBlockInfo(BlockId blockId) {
auto it = staticBlockInfo.find(blockId);
if (it != staticBlockInfo.end())
return &blocks.data()[it->second];
diff --git a/src/Block.hpp b/src/Block.hpp
index a9fd881..0fd0e89 100644
--- a/src/Block.hpp
+++ b/src/Block.hpp
@@ -49,4 +49,4 @@ struct BlockInfo {
void RegisterStaticBlockInfo(BlockId blockId, BlockInfo blockInfo);
-BlockInfo* GetBlockInfo(BlockId blockId, Vector blockPos = Vector(0,0,0));
+BlockInfo* GetBlockInfo(BlockId blockId);