diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-19 22:14:37 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-19 22:14:37 +0200 |
commit | b5ffe06f884221f98407910bdd30baf533d84970 (patch) | |
tree | 6f7768641979fa5f57525eb98e8a7e37b71bfe06 /src/Blocks/BlockMelon.h | |
parent | Player: Silenced a few type conversion warnings. (diff) | |
download | cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.gz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.bz2 cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.lz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.xz cuberite-b5ffe06f884221f98407910bdd30baf533d84970.tar.zst cuberite-b5ffe06f884221f98407910bdd30baf533d84970.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockMelon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockMelon.h b/src/Blocks/BlockMelon.h index 2f7d9a461..60202d66e 100644 --- a/src/Blocks/BlockMelon.h +++ b/src/Blocks/BlockMelon.h @@ -19,8 +19,8 @@ public: virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { - MTRand r1; - a_Pickups.push_back(cItem(E_ITEM_MELON_SLICE, (char)(3 + r1.randInt(4)), 0)); + cFastRandom Random; + a_Pickups.push_back(cItem(E_ITEM_MELON_SLICE, (char)(3 + Random.NextInt(5)), 0)); } |