summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-11-28 21:49:33 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-11-28 21:49:33 +0100
commit98cf4025ce103f9dc138b0dca19117d60c5e5f8f (patch)
tree04d1ec329ee86029465de08da5672bf241851446 /src/BlockInfo.cpp
parentLilypads: add missing boundary check (diff)
downloadcuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar.gz
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar.bz2
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar.lz
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar.xz
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.tar.zst
cuberite-98cf4025ce103f9dc138b0dca19117d60c5e5f8f.zip
Diffstat (limited to '')
-rw-r--r--src/BlockInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp
index d6c95f6a6..76ca420e2 100644
--- a/src/BlockInfo.cpp
+++ b/src/BlockInfo.cpp
@@ -838,13 +838,17 @@ bool cBlockInfo::FullyOccupiesVoxel(const BLOCKTYPE Block)
bool cBlockInfo::IsOneHitDig(const BLOCKTYPE Block)
{
+#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wfloat-equal"
+#endif
// GetHardness returns exactly 0 for one hit break blocks:
return GetHardness(Block) == 0;
+#ifdef __clang__
#pragma clang diagnostic pop
+#endif
}