aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/EnchantmentContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/EnchantmentContainer.cpp')
-rw-r--r--Minecraft.World/EnchantmentContainer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Minecraft.World/EnchantmentContainer.cpp b/Minecraft.World/EnchantmentContainer.cpp
new file mode 100644
index 00000000..6e5541fb
--- /dev/null
+++ b/Minecraft.World/EnchantmentContainer.cpp
@@ -0,0 +1,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
+} \ No newline at end of file