summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-26 17:26:47 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-26 17:26:47 +0200
commitbf3229867bc6a7d531fcb43c6519a951b043a732 (patch)
treedf3d77de74e081361ababe10211b9e8056f0c800
parentGameMode check (diff)
downloadcuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar.gz
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar.bz2
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar.lz
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar.xz
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.tar.zst
cuberite-bf3229867bc6a7d531fcb43c6519a951b043a732.zip
-rw-r--r--src/Entities/ArrowEntity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp
index 6d74b387a..712ae3879 100644
--- a/src/Entities/ArrowEntity.cpp
+++ b/src/Entities/ArrowEntity.cpp
@@ -134,6 +134,7 @@ void cArrowEntity::CollectedBy(cPlayer * a_Dest)
{
if (m_IsInGround && !m_bIsCollected && CanPickup(*a_Dest))
{
+ // The arrow won't added to the inventory, when the player is creative
if (!a_Dest->IsGameModeCreative())
{
int NumAdded = a_Dest->GetInventory().AddItem(E_ITEM_ARROW);