diff options
author | MaxwellScroggs <66567983+MaxwellScroggs@users.noreply.github.com> | 2020-07-04 23:49:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 23:49:17 +0200 |
commit | 5cdaf073be015a99e87dde4540405a69ff56eb47 (patch) | |
tree | a8730b445ea9620a603f21008c583412d6775cf2 /src/UI/EnchantingWindow.cpp | |
parent | Merged trivial item handlers into cSimplePlaceableItemHandler (#4766) (diff) | |
download | cuberite-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.cpp | 8 |
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)); |