Feat: Updated Enchanting Mechanics

Updated in the ARC:
EnchantingMenu1080
SkinHDGraphicsInGame
SkinHDInGame

may have override other changes in the arc but it dont think so...
This commit is contained in:
SevenToaster509
2026-04-10 13:18:42 +01:00
parent 61b6e6adca
commit 490ac0eed1
16 changed files with 292 additions and 35 deletions
+6 -3
View File
@@ -2,19 +2,22 @@
#include "net.minecraft.world.inventory.h"
#include "EnchantmentContainer.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu( menu )
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu, int size) : SimpleContainer(IDS_ENCHANT, L"", false, 2), m_menu( menu )
{
MAX_STACK_SIZE = size;
}
int EnchantmentContainer::getMaxStackSize() const
{
return 1;
return MAX_STACK_SIZE;
}
void EnchantmentContainer::setChanged()
{
SimpleContainer::setChanged();
m_menu->slotsChanged(); // Remove this param as it's not needed
m_menu->slotsChanged(MAX_STACK_SIZE);
}
bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)