mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06: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,13 +444,13 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Player* PlayerController::getPlayer() {
|
Player* PlayerController::getPlayer() {
|
||||||
return player.get();
|
return player.get();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue