diff options
author | Mattes D <github@xoft.cz> | 2014-08-20 16:23:31 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-20 16:23:31 +0200 |
commit | 5410a36f92c1c94f25552dff4a46b9611f0cb917 (patch) | |
tree | 920627577c09fd3270b08bab3e7a6d3d29d52025 /src/Blocks/BlockGlowstone.h | |
parent | Player: Silenced a few type conversion warnings. (diff) | |
parent | Removed old classes from the CMakeLists.txt (diff) | |
download | cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.gz cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.bz2 cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.lz cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.xz cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.tar.zst cuberite-5410a36f92c1c94f25552dff4a46b9611f0cb917.zip |
Diffstat (limited to 'src/Blocks/BlockGlowstone.h')
-rw-r--r-- | src/Blocks/BlockGlowstone.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockGlowstone.h b/src/Blocks/BlockGlowstone.h index 6c198efc4..d1353e29a 100644 --- a/src/Blocks/BlockGlowstone.h +++ b/src/Blocks/BlockGlowstone.h @@ -15,13 +15,13 @@ public: : cBlockHandler(a_BlockType) { } - + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { // Reset meta to 0 - MTRand r1; - a_Pickups.push_back(cItem(E_ITEM_GLOWSTONE_DUST, (char)(2 + r1.randInt(2)), 0)); + cFastRandom Random; + a_Pickups.push_back(cItem(E_ITEM_GLOWSTONE_DUST, (char)(2 + Random.NextInt(3)), 0)); } } ; |