summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockComparator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2016-06-05 17:53:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2016-07-29 00:20:53 +0200
commit62090e7bed13fa1f5312b48573b28371712c5c02 (patch)
treeea3f89419865fd4383865c39480ece19b793a4f6 /src/Blocks/BlockComparator.h
parentComparators and pistons no longer update instantly (diff)
downloadcuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar.gz
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar.bz2
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar.lz
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar.xz
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.tar.zst
cuberite-62090e7bed13fa1f5312b48573b28371712c5c02.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockComparator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Blocks/BlockComparator.h b/src/Blocks/BlockComparator.h
index ffd1bde61..5ba17c691 100644
--- a/src/Blocks/BlockComparator.h
+++ b/src/Blocks/BlockComparator.h
@@ -60,6 +60,11 @@ public:
return true;
}
+ inline static bool IsInSubtractionMode(NIBBLETYPE a_Meta)
+ {
+ return ((a_Meta & 0x4) == 0x4);
+ }
+
inline static bool IsOn(NIBBLETYPE a_Meta)
{
return ((a_Meta & 0x8) == 0x8);