diff options
Diffstat (limited to 'src/UI/ChestWindow.cpp')
-rw-r--r-- | src/UI/ChestWindow.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/UI/ChestWindow.cpp b/src/UI/ChestWindow.cpp index 56c1c96e6..726536424 100644 --- a/src/UI/ChestWindow.cpp +++ b/src/UI/ChestWindow.cpp @@ -13,7 +13,7 @@ -cChestWindow::cChestWindow(cChestEntity * a_Chest): +cChestWindow::cChestWindow(cChestEntity * a_Chest) : cWindow(wtChest, (a_Chest->GetBlockType() == E_BLOCK_CHEST) ? "Chest" : "Trapped Chest"), m_World(a_Chest->GetWorld()), m_BlockPos(a_Chest->GetPos()), @@ -106,25 +106,27 @@ void cChestWindow::OpenedByPlayer(cPlayer & a_Player) -void cChestWindow::DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) +void cChestWindow::DistributeStack( + cItem & a_ItemStack, + int a_Slot, + cPlayer & a_Player, + cSlotArea * a_ClickedArea, + bool a_ShouldApply +) { cSlotAreas AreasInOrder; if (a_ClickedArea == m_SlotAreas[0]) { // Chest 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 { // Hotbar or Inventory - AreasInOrder.push_back(m_SlotAreas[0]); /* Chest */ + AreasInOrder.push_back(m_SlotAreas[0]); /* Chest */ Super::DistributeStackToAreas(a_ItemStack, a_Player, AreasInOrder, a_ShouldApply, false); } } - - - - |