summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemMilk.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/ItemMilk.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/ItemMilk.h')
-rw-r--r--src/Items/ItemMilk.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Items/ItemMilk.h b/src/Items/ItemMilk.h
index db7bc13be..c9a90865a 100644
--- a/src/Items/ItemMilk.h
+++ b/src/Items/ItemMilk.h
@@ -21,8 +21,12 @@ public:
{
UNUSED(a_Item);
a_Player->ClearEntityEffects();
- a_Player->GetInventory().RemoveOneEquippedItem();
- a_Player->GetInventory().AddItem(E_ITEM_BUCKET);
+
+ if (!a_Player->IsGameModeCreative())
+ {
+ a_Player->GetInventory().RemoveOneEquippedItem();
+ a_Player->GetInventory().AddItem(E_ITEM_BUCKET);
+ }
return true;
}
};