summaryrefslogtreecommitdiffstats
path: root/src/UI/EnchantingWindow.cpp
diff options
context:
space:
mode:
authorMaxwellScroggs <66567983+MaxwellScroggs@users.noreply.github.com>2020-07-04 23:49:17 +0200
committerGitHub <noreply@github.com>2020-07-04 23:49:17 +0200
commit5cdaf073be015a99e87dde4540405a69ff56eb47 (patch)
treea8730b445ea9620a603f21008c583412d6775cf2 /src/UI/EnchantingWindow.cpp
parentMerged trivial item handlers into cSimplePlaceableItemHandler (#4766) (diff)
downloadcuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar.gz
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar.bz2
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar.lz
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar.xz
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.tar.zst
cuberite-5cdaf073be015a99e87dde4540405a69ff56eb47.zip
Diffstat (limited to '')
-rw-r--r--src/UI/EnchantingWindow.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/UI/EnchantingWindow.cpp b/src/UI/EnchantingWindow.cpp
index 3e0f2cd4c..a3abf3a02 100644
--- a/src/UI/EnchantingWindow.cpp
+++ b/src/UI/EnchantingWindow.cpp
@@ -11,14 +11,12 @@
-cEnchantingWindow::cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ) :
+cEnchantingWindow::cEnchantingWindow(Vector3i a_BlockPos) :
cWindow(wtEnchantment, "Enchant"),
m_SlotArea(),
- m_BlockX(a_BlockX),
- m_BlockY(a_BlockY),
- m_BlockZ(a_BlockZ)
+ m_BlockPos(a_BlockPos)
{
- m_SlotArea = new cSlotAreaEnchanting(*this, m_BlockX, m_BlockY, m_BlockZ);
+ m_SlotArea = new cSlotAreaEnchanting(*this, m_BlockPos);
m_SlotAreas.push_back(m_SlotArea);
m_SlotAreas.push_back(new cSlotAreaInventory(*this));
m_SlotAreas.push_back(new cSlotAreaHotBar(*this));