diff options
Diffstat (limited to 'src/UI/HopperWindow.cpp')
-rw-r--r-- | src/UI/HopperWindow.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/UI/HopperWindow.cpp b/src/UI/HopperWindow.cpp index 8ac90401b..f50ec633a 100644 --- a/src/UI/HopperWindow.cpp +++ b/src/UI/HopperWindow.cpp @@ -13,7 +13,7 @@ -cHopperWindow::cHopperWindow(cHopperEntity * a_Hopper): +cHopperWindow::cHopperWindow(cHopperEntity * a_Hopper) : Super(wtHopper, "Hopper") { m_SlotAreas.push_back(new cSlotAreaItemGrid(a_Hopper->GetContents(), *this)); @@ -25,25 +25,27 @@ cHopperWindow::cHopperWindow(cHopperEntity * a_Hopper): -void cHopperWindow::DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) +void cHopperWindow::DistributeStack( + cItem & a_ItemStack, + int a_Slot, + cPlayer & a_Player, + cSlotArea * a_ClickedArea, + bool a_ShouldApply +) { cSlotAreas AreasInOrder; if (a_ClickedArea == m_SlotAreas[0]) { // Hopper Area - AreasInOrder.push_back(m_SlotAreas[2]); /* Hotbar */ - AreasInOrder.push_back(m_SlotAreas[1]); /* Inventory */ + AreasInOrder.push_back(m_SlotAreas[2]); /* Hotbar */ + AreasInOrder.push_back(m_SlotAreas[1]); /* Inventory */ Super::DistributeStackToAreas(a_ItemStack, a_Player, AreasInOrder, a_ShouldApply, true); } else { // Inventory or Hotbar - AreasInOrder.push_back(m_SlotAreas[0]); /* Hopper */ + AreasInOrder.push_back(m_SlotAreas[0]); /* Hopper */ Super::DistributeStackToAreas(a_ItemStack, a_Player, AreasInOrder, a_ShouldApply, false); } } - - - - |