mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
lua: on_block_interact prevent default feature
This commit is contained in:
parent
f49aa9eab0
commit
7df98f7b35
3 changed files with 8 additions and 5 deletions
|
|
@ -286,8 +286,8 @@ void PlayerController::updateInteraction(){
|
|||
}
|
||||
if (def && rclick){
|
||||
if (!input.shift && target->rt.funcsset.oninteract) {
|
||||
scripting::on_block_interact(player, target, x, y, z);
|
||||
return;
|
||||
if (!scripting::on_block_interact(player, target, x, y, z))
|
||||
return;
|
||||
}
|
||||
if (!target->replaceable){
|
||||
x = (iend.x)+(norm.x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue