mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
Block interaction prevention feature (Shift key)
This commit is contained in:
parent
9ebbe1029d
commit
188e2b81b7
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ void PlayerController::updateInteraction(){
|
||||||
blocksController->breakBlock(player, block, x, y, z);
|
blocksController->breakBlock(player, block, x, y, z);
|
||||||
}
|
}
|
||||||
if (rclick){
|
if (rclick){
|
||||||
if (block->rt.funcsset.oninteract) {
|
if (!input.shift && block->rt.funcsset.oninteract) {
|
||||||
scripting::on_block_interact(player, block, x, y, z);
|
scripting::on_block_interact(player, block, x, y, z);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue