Files
GabsPuNs-Project_Zenith_Main/Minecraft.World/EnchantmentContainer.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

22 lines
517 B
C++

#include "net.minecraft.world.inventory.h"
#include "EnchantmentContainer.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu( menu )
{
}
int EnchantmentContainer::getMaxStackSize() const
{
return 1;
}
void EnchantmentContainer::setChanged()
{
SimpleContainer::setChanged();
m_menu->slotsChanged(); // Remove this param as it's not needed
}
bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
{
return true;
}