summaryrefslogtreecommitdiffstats
path: root/src/BlockID.cpp
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2015-05-29 23:12:51 +0200
committertycho <work.tycho@gmail.com>2015-05-30 01:02:43 +0200
commit1dfc7bbce27a60b0ded261e851956fb3d2004fab (patch)
tree0ab5ceb297cb7f7f661aa09aaab6215aa2662d00 /src/BlockID.cpp
parentMerge pull request #2070 from mc-server/PreventNewWarnings (diff)
downloadcuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar.gz
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar.bz2
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar.lz
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar.xz
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.tar.zst
cuberite-1dfc7bbce27a60b0ded261e851956fb3d2004fab.zip
Diffstat (limited to '')
-rw-r--r--src/BlockID.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp
index 775d60a68..c598df0aa 100644
--- a/src/BlockID.cpp
+++ b/src/BlockID.cpp
@@ -295,7 +295,7 @@ eDimension StringToDimension(const AString & a_DimensionString)
{
// First try decoding as a number
int res;
- if (!StringToInteger(a_DimensionString, res))
+ if (StringToInteger(a_DimensionString, res))
{
// It was a valid number
return static_cast<eDimension>(res);