diff options
author | Mat <mail@mathias.is> | 2020-03-22 11:17:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 11:17:04 +0100 |
commit | 49dd645aa67041904cb35c1337e7e52ea99669ae (patch) | |
tree | 796bf2109bbb311caa76e2633802528127919f40 /src/Items/ItemBottle.h | |
parent | Allow enderman to attack during day (#4522) (diff) | |
download | cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar.gz cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar.bz2 cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar.lz cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar.xz cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.tar.zst cuberite-49dd645aa67041904cb35c1337e7e52ea99669ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemBottle.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemBottle.h b/src/Items/ItemBottle.h index 092d5d81a..b261937e5 100644 --- a/src/Items/ItemBottle.h +++ b/src/Items/ItemBottle.h @@ -84,8 +84,7 @@ public: } a_Player->GetInventory().RemoveOneEquippedItem(); - cItem NewItem(E_ITEM_POTION, 1, 0); - a_Player->GetInventory().AddItem(NewItem); + a_Player->GetInventory().AddItem(cItem(E_ITEM_POTION)); return true; } } ; |