aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MerchantContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/MerchantContainer.cpp')
-rw-r--r--Minecraft.World/MerchantContainer.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/Minecraft.World/MerchantContainer.cpp b/Minecraft.World/MerchantContainer.cpp
index cadbe4e3..cd3fde5e 100644
--- a/Minecraft.World/MerchantContainer.cpp
+++ b/Minecraft.World/MerchantContainer.cpp
@@ -90,11 +90,21 @@ void MerchantContainer::setItem(unsigned int slot, shared_ptr<ItemInstance> item
}
}
-int MerchantContainer::getName()
+wstring MerchantContainer::getName()
{
return merchant->getDisplayName();
}
+wstring MerchantContainer::getCustomName()
+{
+ return L"";
+}
+
+bool MerchantContainer::hasCustomName()
+{
+ return false;
+}
+
int MerchantContainer::getMaxStackSize()
{
return Container::LARGE_MAX_STACK_SIZE;
@@ -113,6 +123,11 @@ void MerchantContainer::stopOpen()
{
}
+bool MerchantContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
+{
+ return true;
+}
+
void MerchantContainer::setChanged()
{
updateSellItem();