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/AnvilWindow.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/AnvilWindow.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/UI/AnvilWindow.cpp b/src/UI/AnvilWindow.cpp index 6d1d673df..66499cbc9 100644 --- a/src/UI/AnvilWindow.cpp +++ b/src/UI/AnvilWindow.cpp @@ -10,12 +10,10 @@ -cAnvilWindow::cAnvilWindow(int a_BlockX, int a_BlockY, int a_BlockZ) : +cAnvilWindow::cAnvilWindow(Vector3i a_BlockPos) : cWindow(wtAnvil, "Repair"), m_RepairedItemName(""), - m_BlockX(a_BlockX), - m_BlockY(a_BlockY), - m_BlockZ(a_BlockZ) + m_BlockPos(a_BlockPos) { m_AnvilSlotArea = new cSlotAreaAnvil(*this); m_SlotAreas.push_back(m_AnvilSlotArea); @@ -49,17 +47,6 @@ void cAnvilWindow::SetRepairedItemName(const AString & a_Name, cPlayer * a_Playe -void cAnvilWindow::GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ) -{ - a_PosX = m_BlockX; - a_PosY = m_BlockY; - a_PosZ = m_BlockZ; -} - - - - - void cAnvilWindow::DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) { cSlotAreas AreasInOrder; |