Implemented Ctrl-Q drop stack
Also fixed an issue with TossItems not respecting count.
This commit is contained in:
@@ -629,6 +629,17 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, ch
|
||||
return;
|
||||
}
|
||||
|
||||
case DIG_STATUS_DROP_STACK:
|
||||
{
|
||||
if (PlgMgr->CallHookPlayerTossingItem(*m_Player))
|
||||
{
|
||||
// A plugin doesn't agree with the tossing. The plugin itself is responsible for handling the consequences (possible inventory mismatch)
|
||||
return;
|
||||
}
|
||||
m_Player->TossItem(false, 64); // Toss entire slot - if there aren't enough items, the maximum will be ejected
|
||||
return;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
ASSERT(!"Unhandled DIG_STATUS");
|
||||
|
||||
Reference in New Issue
Block a user