mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 12:44:36 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
22 lines
517 B
C++
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;
|
|
} |