summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 17:53:46 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 17:53:46 +0100
commit5d2311bcff631bcb9849754318b3469af6f7e4fe (patch)
tree79cb23ac444cb09a4b7b69858651d453dc6ac1a8 /src/Blocks
parentmoved deafult action into deafult clause at src/Generating/DistortedHeightmap.cpp line 741 (diff)
parentMerge pull request #412 from mc-server/fixes (diff)
downloadcuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.gz
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.bz2
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.lz
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.xz
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.tar.zst
cuberite-5d2311bcff631bcb9849754318b3469af6f7e4fe.zip
Diffstat (limited to 'src/Blocks')
-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);
}