mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-06-22 04:15:39 +00:00
removed git history
This commit is contained in:
23
Minecraft.World/EnchantmentContainer.cpp
Normal file
23
Minecraft.World/EnchantmentContainer.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "stdafx.h"
|
||||
#include "net.minecraft.world.inventory.h"
|
||||
#include "EnchantmentContainer.h"
|
||||
|
||||
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu( menu )
|
||||
{
|
||||
}
|
||||
|
||||
int EnchantmentContainer::getMaxStackSize() const
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
void EnchantmentContainer::setChanged()
|
||||
{
|
||||
SimpleContainer::setChanged();
|
||||
m_menu->slotsChanged(); // Remove this param as it's not needed
|
||||
}
|
||||
|
||||
bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user