summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemBow.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-02 17:05:16 +0100
committerMattes D <github@xoft.cz>2013-11-02 17:05:16 +0100
commitc5b6d68517f8a93d52e684e00cf053de6a31ab99 (patch)
tree65a8c524577e76cf353f7478ab1f869bfe4bd2db /source/Items/ItemBow.h
parentProtocol 1.7: Implemented the first batch of sent packets. (diff)
parentFixed bow damage in creative (diff)
downloadcuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar.gz
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar.bz2
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar.lz
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar.xz
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.tar.zst
cuberite-c5b6d68517f8a93d52e684e00cf053de6a31ab99.zip
Diffstat (limited to 'source/Items/ItemBow.h')
-rw-r--r--source/Items/ItemBow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Items/ItemBow.h b/source/Items/ItemBow.h
index 845192ef7..7bce127b1 100644
--- a/source/Items/ItemBow.h
+++ b/source/Items/ItemBow.h
@@ -71,6 +71,11 @@ public:
return;
}
a_Player->GetWorld()->BroadcastSpawnEntity(*Arrow);
+
+ if (!a_Player->IsGameModeCreative())
+ {
+ a_Player->UseEquippedItem();
+ }
}
} ;