mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-15 10:33:52 +00:00
Fix stale held item appearing when switching worlds (#910)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
This commit is contained in:
parent
2f443fe333
commit
a14a4542c9
3 changed files with 22 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue