mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
item on_use double call fix
This commit is contained in:
parent
731d43ff63
commit
3a6fa57630
1 changed files with 5 additions and 5 deletions
|
|
@ -444,11 +444,11 @@ void PlayerController::updateInteraction(){
|
||||||
selectedBlockId = -1;
|
selectedBlockId = -1;
|
||||||
selectedBlockRotation = 0;
|
selectedBlockRotation = 0;
|
||||||
player->selectedVoxel.id = BLOCK_VOID;
|
player->selectedVoxel.id = BLOCK_VOID;
|
||||||
}
|
if (rclick) {
|
||||||
if (rclick) {
|
if (item->rt.funcsset.on_use) {
|
||||||
if (item->rt.funcsset.on_use) {
|
scripting::on_item_use(player.get(), item);
|
||||||
scripting::on_item_use(player.get(), item);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue