4jcraft/Minecraft.World/Containers/EnchantmentContainer.cpp
2026-03-05 03:29:23 -05:00

19 lines
440 B
C++

#include "../Build/stdafx.h"
#include "../Headers/net.minecraft.world.inventory.h"
#include "EnchantmentContainer.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, 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
}