* Add Player::drop

This commit is contained in:
iProgramInCpp
2023-07-31 17:13:10 +03:00
parent 297f7f3cf4
commit cb085a8956
6 changed files with 63 additions and 4 deletions

View File

@@ -381,6 +381,13 @@ void Minecraft::tickInput()
m_pLevelRenderer->allChanged();
}
#endif
#ifdef TEST_DROPPED_ITEMS
else if (keyCode == AKEYCODE_Q)
{
ItemInstance inst(m_pLocalPlayer->m_pInventory->getSelectedItemId(), 1, 0);
m_pLocalPlayer->drop(&inst);
}
#endif
}
if (m_options.field_19)