Fix stale held item appearing when switching worlds (#910)

Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
This commit is contained in:
Ayush Thoren
2026-03-08 12:12:49 -07:00
committed by GitHub
parent 2f443fe333
commit a14a4542c9
3 changed files with 22 additions and 0 deletions

View File

@@ -930,6 +930,14 @@ void ItemInHandRenderer::tick()
}
void ItemInHandRenderer::reset()
{
selectedItem = nullptr;
lastSlot = -1;
height = 0.0f;
oHeight = 0.0f;
}
void ItemInHandRenderer::itemPlaced()
{
height = 0;