mirror of
https://github.com/BluTac10/Xbox-Neo.git
synced 2026-05-23 03:15:01 +00:00
Updated in the ARC: EnchantingMenu1080 SkinHDGraphicsInGame SkinHDInGame may have override other changes in the arc but it dont think so...
26 lines
560 B
C++
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;
|
|
} |