fix: extended block always main segment passed to on_iteract

This commit is contained in:
MihailRis
2024-10-15 05:24:52 +03:00
parent d59fac61bb
commit fbca439b2d
3 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -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;
}