summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-26 15:56:03 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-26 15:56:03 +0200
commitf96955496f4e53105b045fb7f3fa7d34ed82b147 (patch)
treeb36992165b564a3e18107f6f3c15923e8990724e /src/Entities
parentMerge branch 'master' into Bow (diff)
downloadcuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar.gz
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar.bz2
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar.lz
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar.xz
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.tar.zst
cuberite-f96955496f4e53105b045fb7f3fa7d34ed82b147.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/ArrowEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp
index e46d21515..6d74b387a 100644
--- a/src/Entities/ArrowEntity.cpp
+++ b/src/Entities/ArrowEntity.cpp
@@ -134,7 +134,7 @@ void cArrowEntity::CollectedBy(cPlayer * a_Dest)
{
if (m_IsInGround && !m_bIsCollected && CanPickup(*a_Dest))
{
- if (m_PickupState == psInSurvivalOrCreative)
+ if (!a_Dest->IsGameModeCreative())
{
int NumAdded = a_Dest->GetInventory().AddItem(E_ITEM_ARROW);
if (NumAdded == 0)