diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-29 00:51:52 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-29 00:51:52 +0100 |
commit | 519bd0b989fb931fd0925bad6a5cb1a9e223d85f (patch) | |
tree | f609d31d3b47e0194844c6e761155d44b455969d /src/Items | |
parent | Fixed infinite minecart items (diff) | |
download | cuberite-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.h | 5 |
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; } |