mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 14:23:43 +00:00
19 lines
420 B
C++
19 lines
420 B
C++
#include "stdafx.h"
|
|
#include "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
|
|
}
|