diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-28 23:52:23 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-28 23:52:23 +0100 |
commit | 79aa082b048ba1c4a0407d1faa8fb96a33dd4415 (patch) | |
tree | c218dd2c60923a28d105488ddc06ebb654ca98c0 /src/Items | |
parent | Fixed block interaction rate check (diff) | |
download | cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar.gz cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar.bz2 cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar.lz cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar.xz cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.tar.zst cuberite-79aa082b048ba1c4a0407d1faa8fb96a33dd4415.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemMinecart.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Items/ItemMinecart.h b/src/Items/ItemMinecart.h index bcaa5635a..bf6f70eed 100644 --- a/src/Items/ItemMinecart.h +++ b/src/Items/ItemMinecart.h @@ -72,6 +72,9 @@ public: } } // switch (m_ItemType) Minecart->Initialize(a_World); + + if (!a_Player->IsGameModeCreative()) + a_Player->GetInventory().RemoveOneEquippedItem(); return true; } |