mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: extended block always main segment passed to on_iteract
This commit is contained in:
parent
d59fac61bb
commit
fbca439b2d
3 changed files with 15 additions and 2 deletions
|
|
@ -423,7 +423,7 @@ void PlayerController::processRightClick(const Block& def, const Block& target)
|
|||
|
||||
if (!input.shift && target.rt.funcsset.oninteract) {
|
||||
if (scripting::on_block_interact(
|
||||
player.get(), target, selection.position
|
||||
player.get(), target, selection.actualPosition
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue