mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Remove unneeded code
This commit is contained in:
parent
46c4023e3d
commit
ea1addf243
|
|
@ -1377,21 +1377,13 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction, bool b
|
||||||
quickKeyHeld = TRUE;
|
quickKeyHeld = TRUE;
|
||||||
if (IsSectionSlotList(m_eCurrSection))
|
if (IsSectionSlotList(m_eCurrSection))
|
||||||
{
|
{
|
||||||
int currentIndex = getCurrentIndex(m_eCurrSection) - getSectionStartOffset(m_eCurrSection);
|
ui.PlayUISFX(eSFX_Press);
|
||||||
|
|
||||||
bool bSlotHasItem = !isSlotEmpty(m_eCurrSection, currentIndex);
|
|
||||||
if (bSlotHasItem)
|
|
||||||
ui.PlayUISFX(eSFX_Press);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (IsSectionSlotList(m_eCurrSection))
|
if (IsSectionSlotList(m_eCurrSection))
|
||||||
{
|
{
|
||||||
int currentIndex = getCurrentIndex(m_eCurrSection) - getSectionStartOffset(m_eCurrSection);
|
|
||||||
|
|
||||||
//bool bSlotHasItem = !isSlotEmpty(m_eCurrSection, currentIndex);
|
|
||||||
//if (bSlotHasItem)
|
|
||||||
ui.PlayUISFX(eSFX_Press);
|
ui.PlayUISFX(eSFX_Press);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue