aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/EnchantmentContainer.cpp
blob: 6e5541fb3c8c3d9ef3be6db874e4cdceb55bfe0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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
}