summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemLilypad.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Items/ItemLilypad.h')
-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;
}