summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemBow.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-02 17:01:40 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-02 17:01:40 +0100
commitf38375a2ecaca692f905d687101315b801c3e724 (patch)
tree65a8c524577e76cf353f7478ab1f869bfe4bd2db /source/Items/ItemBow.h
parentFixed dropspensing speed and position (diff)
downloadcuberite-f38375a2ecaca692f905d687101315b801c3e724.tar
cuberite-f38375a2ecaca692f905d687101315b801c3e724.tar.gz
cuberite-f38375a2ecaca692f905d687101315b801c3e724.tar.bz2
cuberite-f38375a2ecaca692f905d687101315b801c3e724.tar.lz
cuberite-f38375a2ecaca692f905d687101315b801c3e724.tar.xz
cuberite-f38375a2ecaca692f905d687101315b801c3e724.tar.zst
cuberite-f38375a2ecaca692f905d687101315b801c3e724.zip
Diffstat (limited to '')
-rw-r--r--source/Items/ItemBow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/Items/ItemBow.h b/source/Items/ItemBow.h
index 1add0dc6d..7bce127b1 100644
--- a/source/Items/ItemBow.h
+++ b/source/Items/ItemBow.h
@@ -71,7 +71,11 @@ public:
return;
}
a_Player->GetWorld()->BroadcastSpawnEntity(*Arrow);
- a_Player->UseEquippedItem();
+
+ if (!a_Player->IsGameModeCreative())
+ {
+ a_Player->UseEquippedItem();
+ }
}
} ;