diff options
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockGlowstone.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Blocks/BlockGlowstone.h b/src/Blocks/BlockGlowstone.h index 1e187084d..395233b44 100644 --- a/src/Blocks/BlockGlowstone.h +++ b/src/Blocks/BlockGlowstone.h @@ -21,16 +21,12 @@ private: // Drop self only when using silk-touch: if (ToolHasSilkTouch(a_Tool)) { - return cItem(E_BLOCK_GLOWSTONE, 1, 0); + return cItem(E_BLOCK_GLOWSTONE); } // Number of dust to drop, capped at the max amount of 4. - const auto Drops = std::min( - static_cast<char>(4), - GetRandomProvider().RandInt<char>(2, 4 + ToolFortuneLevel(a_Tool)) - ); - - return cItem(E_ITEM_GLOWSTONE_DUST, Drops); + const auto DropNum = FortuneDiscreteRandom(2, 4, ToolFortuneLevel(a_Tool), 4); + return cItem(E_ITEM_GLOWSTONE_DUST, DropNum); } |