mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 15:31:49 +00:00
Merge pull request #117 from A-lex-Ra/main
fix redundant model dependency in player interaction
This commit is contained in:
commit
45315a1801
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ void PlayerController::updateInteraction(){
|
||||||
scripting::on_block_interact(player, target, x, y, z);
|
scripting::on_block_interact(player, target, x, y, z);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (target->model != BlockModel::xsprite){
|
if (!target->replaceable){
|
||||||
x = (iend.x)+(norm.x);
|
x = (iend.x)+(norm.x);
|
||||||
y = (iend.y)+(norm.y);
|
y = (iend.y)+(norm.y);
|
||||||
z = (iend.z)+(norm.z);
|
z = (iend.z)+(norm.z);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue