summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-29 00:51:52 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-29 00:51:52 +0100
commit519bd0b989fb931fd0925bad6a5cb1a9e223d85f (patch)
treef609d31d3b47e0194844c6e761155d44b455969d /src/Items
parentFixed infinite minecart items (diff)
downloadcuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar.gz
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar.bz2
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar.lz
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar.xz
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.tar.zst
cuberite-519bd0b989fb931fd0925bad6a5cb1a9e223d85f.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemLilypad.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Items/ItemLilypad.h b/src/Items/ItemLilypad.h
index 8496b9f31..5a29abe94 100644
--- a/src/Items/ItemLilypad.h
+++ b/src/Items/ItemLilypad.h
@@ -1,4 +1,3 @@
-
#pragma once
#include "ItemHandler.h"
@@ -36,7 +35,9 @@ public:
AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace);
a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_LILY_PAD, 0);
if (!a_Player->IsGameModeCreative())
+ {
a_Player->GetInventory().RemoveOneEquippedItem();
+ }
return true;
}
@@ -93,7 +94,9 @@ public:
{
a_World->SetBlock(Callbacks.m_Pos.x, Callbacks.m_Pos.y, Callbacks.m_Pos.z, E_BLOCK_LILY_PAD, 0);
if (!a_Player->IsGameModeCreative())
+ {
a_Player->GetInventory().RemoveOneEquippedItem();
+ }
return true;
}