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

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

No files matched your search

+8
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;