summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemGoldenApple.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-30 12:46:26 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-30 12:46:26 +0200
commit0fdb1772083d7b4b8dd71c6f084acd9d2e001eec (patch)
tree4cd6964a056a4cbe92e93eb58d4e9a937d109522 /src/Items/ItemGoldenApple.h
parentAdded slowness effect and added entity support. (diff)
downloadcuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.gz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.bz2
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.lz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.xz
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.tar.zst
cuberite-0fdb1772083d7b4b8dd71c6f084acd9d2e001eec.zip
Diffstat (limited to 'src/Items/ItemGoldenApple.h')
-rw-r--r--src/Items/ItemGoldenApple.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Items/ItemGoldenApple.h b/src/Items/ItemGoldenApple.h
index 02ac0202c..5f6f1de6c 100644
--- a/src/Items/ItemGoldenApple.h
+++ b/src/Items/ItemGoldenApple.h
@@ -36,6 +36,7 @@ public:
a_Player->AddEntityEffect(cEntityEffect::effFireResistance, 6000, 0);
}
+ a_Player->GetInventory().RemoveOneEquippedItem();
return true;
}