mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-22 12:38:12 +05:00
Fix stale held item appearing when switching worlds (#910)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user