summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-10 00:43:06 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-10 00:43:06 +0100
commit97a1147acaf3a994fb1c62cf79a70dfd10f22fe0 (patch)
tree58e9e1c1dc77c0322a9dfba41704b769f0cf331d /src/Blocks/BlockHandler.cpp
parentFixed VS013 compile (diff)
downloadcuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar.gz
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar.bz2
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar.lz
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar.xz
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.tar.zst
cuberite-97a1147acaf3a994fb1c62cf79a70dfd10f22fe0.zip
Diffstat (limited to '')
-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);
}