diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-06-05 17:53:14 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2016-07-29 00:20:53 +0200 |
commit | 62090e7bed13fa1f5312b48573b28371712c5c02 (patch) | |
tree | ea3f89419865fd4383865c39480ece19b793a4f6 /src/Blocks/BlockComparator.h | |
parent | Comparators and pistons no longer update instantly (diff) | |
download | cuberite-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.h | 5 |
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); |