summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-02 15:24:09 +0100
committerandrew <xdotftw@gmail.com>2014-03-02 15:24:09 +0100
commit0c87341631198386c765bc18848fbd93e66c1aab (patch)
treef8eefb74176afdcd6a1752c074900122a49de94c /src/BlockInfo.cpp
parentAPIDump: ID -> Type (diff)
downloadcuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar.gz
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar.bz2
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar.lz
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar.xz
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.tar.zst
cuberite-0c87341631198386c765bc18848fbd93e66c1aab.zip
Diffstat (limited to '')
-rw-r--r--src/BlockInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp
index 5fd6d33c1..c73ae18b6 100644
--- a/src/BlockInfo.cpp
+++ b/src/BlockInfo.cpp
@@ -29,11 +29,11 @@ cBlockInfo::cBlockInfo()
-cBlockInfo & cBlockInfo::GetById(unsigned int a_ID)
+cBlockInfo & cBlockInfo::Get(BLOCKTYPE a_Type)
{
- ASSERT(a_ID < 256);
+ ASSERT(a_Type < 256);
- return ms_Info[a_ID];
+ return ms_Info[a_Type];
}