summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-30 14:07:28 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-30 14:07:28 +0200
commita87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8 (patch)
tree09b14e0ced11bf0c086b1ef79b3323bbd41a2013 /src
parentCompare for inequality in FACE_NONE checks (diff)
downloadcuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar.gz
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar.bz2
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar.lz
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar.xz
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.tar.zst
cuberite-a87bd5788f7e3e489282b3f69e0bb0ba1ddbafd8.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemMinecart.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Items/ItemMinecart.h b/src/Items/ItemMinecart.h
index bf6f70eed..25500aeb9 100644
--- a/src/Items/ItemMinecart.h
+++ b/src/Items/ItemMinecart.h
@@ -1,4 +1,3 @@
-
// ItemMinecart.h
// Declares the various minecart ItemHandlers
@@ -74,7 +73,9 @@ public:
Minecart->Initialize(a_World);
if (!a_Player->IsGameModeCreative())
+ {
a_Player->GetInventory().RemoveOneEquippedItem();
+ }
return true;
}