summaryrefslogtreecommitdiffstats
path: root/source/UI
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-24 01:30:20 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-10-24 01:30:20 +0200
commit4d2c810c64c38fd5530170d5c4d54956a5587fb2 (patch)
tree17c07b1a6eef15c83279f4530281bf7b986b06a3 /source/UI
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadcuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar.gz
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar.bz2
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar.lz
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar.xz
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.tar.zst
cuberite-4d2c810c64c38fd5530170d5c4d54956a5587fb2.zip
Diffstat (limited to 'source/UI')
-rw-r--r--source/UI/SlotArea.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/UI/SlotArea.cpp b/source/UI/SlotArea.cpp
index 0a37e82b0..463e56bce 100644
--- a/source/UI/SlotArea.cpp
+++ b/source/UI/SlotArea.cpp
@@ -793,7 +793,7 @@ void cSlotAreaTemporary::TossItems(cPlayer & a_Player, int a_Begin, int a_End)
double vX = 0, vY = 0, vZ = 0;
EulerToVector(-a_Player.GetRotation(), a_Player.GetPitch(), vZ, vX, vY);
vY = -vY * 2 + 1.f;
- a_Player.GetWorld()->SpawnItemPickups(Drops, a_Player.GetPosX(), a_Player.GetPosY() + 1.6f, a_Player.GetPosZ(), vX * 3, vY * 3, vZ * 3);
+ a_Player.GetWorld()->SpawnItemPickups(Drops, a_Player.GetPosX(), a_Player.GetPosY() + 1.6f, a_Player.GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because player created
}