summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
committerMattes D <github@xoft.cz>2013-12-10 15:19:38 +0100
commit9cfd8f69105b57495028bc8441ad6075f43401c7 (patch)
treee0bc682ffb03d53a513e5a0243c488f0461d0b9a /src/Blocks/BlockHandler.cpp
parentupdate d the contrib file. (diff)
parentReadded initial line (diff)
downloadcuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.gz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.bz2
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.lz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.xz
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.tar.zst
cuberite-9cfd8f69105b57495028bc8441ad6075f43401c7.zip
Diffstat (limited to 'src/Blocks/BlockHandler.cpp')
-rw-r--r--src/Blocks/BlockHandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp
index 99559ed02..fde6bd803 100644
--- a/src/Blocks/BlockHandler.cpp
+++ b/src/Blocks/BlockHandler.cpp
@@ -376,9 +376,8 @@ void cBlockHandler::DropBlock(cWorld * a_World, cEntity * a_Digger, int a_BlockX
MicroZ = a_BlockZ + 0.5;
// Add random offset second (this causes pickups to spawn inside blocks most times, it's a little buggy)
- //MicroX += (int)(r1.randInt(16) + r1.randInt(16) - 16);
- //MicroY += (int)(r1.randInt(16) + r1.randInt(16) - 16);
- //MicroZ += (int)(r1.randInt(16) + r1.randInt(16) - 16);
+ MicroX += r1.rand(1) - 0.5;
+ MicroZ += r1.rand(1) - 0.5;
a_World->SpawnItemPickups(Pickups, MicroX, MicroY, MicroZ);
}