summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockFlowerPot.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Blocks/BlockFlowerPot.h')
-rw-r--r--source/Blocks/BlockFlowerPot.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/Blocks/BlockFlowerPot.h b/source/Blocks/BlockFlowerPot.h
index 1c02126df..12cd594de 100644
--- a/source/Blocks/BlockFlowerPot.h
+++ b/source/Blocks/BlockFlowerPot.h
@@ -86,10 +86,9 @@ public:
}
}
- if (a_Player->GetGameMode() != eGameMode_Creative)
+ if (a_Player->GetGameMode() != gmCreative)
{
- cItem Item(a_Player->GetEquippedItem().m_ItemType, 1);
- a_Player->GetInventory().RemoveItem(Item);
+ a_Player->GetInventory().RemoveOneEquippedItem();
}
a_World->SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta);
}