Files
BluTac10-Xbox_Neo/Minecraft.World/EnchantmentContainer.cpp
SevenToaster509 490ac0eed1 Feat: Updated Enchanting Mechanics
Updated in the ARC:
EnchantingMenu1080
SkinHDGraphicsInGame
SkinHDInGame

may have override other changes in the arc but it dont think so...
2026-04-10 13:18:42 +01:00

26 lines
560 B
C++

#include "stdafx.h"
#include "net.minecraft.world.inventory.h"
#include "EnchantmentContainer.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu, int size) : SimpleContainer(IDS_ENCHANT, L"", false, 2), m_menu( menu )
{
MAX_STACK_SIZE = size;
}
int EnchantmentContainer::getMaxStackSize() const
{
return MAX_STACK_SIZE;
}
void EnchantmentContainer::setChanged()
{
SimpleContainer::setChanged();
m_menu->slotsChanged(MAX_STACK_SIZE);
}
bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
{
return true;
}