Block interaction prevention feature (Shift key)

This commit is contained in:
MihailRis 2023-12-29 23:57:27 +03:00
parent 9ebbe1029d
commit 188e2b81b7

View File

@ -266,7 +266,7 @@ void PlayerController::updateInteraction(){
blocksController->breakBlock(player, block, x, y, z);
}
if (rclick){
if (block->rt.funcsset.oninteract) {
if (!input.shift && block->rt.funcsset.oninteract) {
scripting::on_block_interact(player, block, x, y, z);
return;
}