From c11ca96c3de23c35788a9c9c109fbe38e3caeb3a Mon Sep 17 00:00:00 2001 From: KingCol13 <48412633+KingCol13@users.noreply.github.com> Date: Sat, 24 Oct 2020 20:48:48 +0300 Subject: TNT Changes (#4970) + Make TNT drop pickups, change a few comments. + Give each ray random intensity, instead of each explosion. * Use direction instead of destination, rewrite for pairs of edges. --- src/BlockInfo.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/BlockInfo.cpp') diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp index 21fa9e220..62978172c 100644 --- a/src/BlockInfo.cpp +++ b/src/BlockInfo.cpp @@ -134,6 +134,15 @@ bool IsBlockFence(BLOCKTYPE a_BlockType) +bool IsBlockShulkerBox(BLOCKTYPE a_BlockType) +{ + return ((a_BlockType >= E_BLOCK_WHITE_SHULKER_BOX) && (a_BlockType <= E_BLOCK_BLACK_SHULKER_BOX)); +} + + + + + bool IsBlockMaterialWood(BLOCKTYPE a_BlockType) { switch (a_BlockType) -- cgit v1.2.3