summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTripwireHook.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-19 13:28:31 +0200
committertycho <work.tycho@gmail.com>2015-05-19 13:28:31 +0200
commitfa4fb75e03c6241370588de2ed62270e1043b312 (patch)
tree71276c51903cab544ecddb4f7431a7adf9b16e1d /src/Blocks/BlockTripwireHook.h
parentMerge branch 'master' into PreventNewWarnings (diff)
downloadcuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar.gz
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar.bz2
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar.lz
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar.xz
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.tar.zst
cuberite-fa4fb75e03c6241370588de2ed62270e1043b312.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockTripwireHook.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Blocks/BlockTripwireHook.h b/src/Blocks/BlockTripwireHook.h
index 88d389711..c7a96d393 100644
--- a/src/Blocks/BlockTripwireHook.h
+++ b/src/Blocks/BlockTripwireHook.h
@@ -37,7 +37,13 @@ public:
case BLOCK_FACE_XP: return 0x3;
case BLOCK_FACE_ZM: return 0x2;
case BLOCK_FACE_ZP: return 0x0;
- default: ASSERT(!"Unhandled tripwire hook direction!"); return 0x0;
+ case BLOCK_FACE_NONE:
+ case BLOCK_FACE_YM:
+ case BLOCK_FACE_YP:
+ {
+ ASSERT(!"Unhandled tripwire hook direction!");
+ return 0x0;
+ }
}
}