summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemSlab.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Items/ItemSlab.h')
-rw-r--r--source/Items/ItemSlab.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/Items/ItemSlab.h b/source/Items/ItemSlab.h
index 9f4760053..9b3aaed03 100644
--- a/source/Items/ItemSlab.h
+++ b/source/Items/ItemSlab.h
@@ -36,8 +36,7 @@ public:
}
else
{
- cItem Item(a_Item.m_ItemType, 1);
- if (a_Player->GetInventory().RemoveItem(Item))
+ if (a_Player->GetInventory().RemoveOneEquippedItem())
{
a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, Block - 1, Meta); // Block - 1 simple hack to save one if statement
return true;