item on_use double call fix
This commit is contained in:
parent
731d43ff63
commit
3a6fa57630
@ -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…
x
Reference in New Issue
Block a user