This repository has been archived on 2026-05-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MinecraftConsoles/Minecraft.World/EnchantmentContainer.cpp
2026-03-01 11:00:23 -06:00

23 lines
531 B
C++

#include "stdafx.h"
#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()
{
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;
}