From 62090e7bed13fa1f5312b48573b28371712c5c02 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 5 Jun 2016 16:53:14 +0100 Subject: Consolidated comparator code * As a result, fixed an issue where GetPowerLevel didn't consider block entities behind it (only GetFrontPowerLevel did) --- src/Blocks/BlockComparator.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Blocks/BlockComparator.h') 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); -- cgit v1.2.3