mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 22:13:37 +00:00
18 lines
609 B
C++
18 lines
609 B
C++
#include "../Platform/stdafx.h"
|
|
#include "../Headers/net.minecraft.world.inventory.h"
|
|
#include "EnchantmentContainer.h"
|
|
|
|
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu* menu)
|
|
: SimpleContainer(IDS_ENCHANT, L"", false, 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
|
|
}
|
|
|
|
bool EnchantmentContainer::canPlaceItem(int slot,
|
|
std::shared_ptr<ItemInstance> item) {
|
|
return true;
|
|
} |