diff options
author | andrew <xdotftw@gmail.com> | 2014-03-02 15:24:09 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-02 15:24:09 +0100 |
commit | 0c87341631198386c765bc18848fbd93e66c1aab (patch) | |
tree | f8eefb74176afdcd6a1752c074900122a49de94c /src/BlockInfo.cpp | |
parent | APIDump: ID -> Type (diff) | |
download | cuberite-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.cpp | 6 |
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]; } |