Merge pull request #117 from A-lex-Ra/main

fix redundant model dependency in player interaction
This commit is contained in:
MihailRis 2024-01-17 16:38:57 +03:00 committed by GitHub
commit 45315a1801
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,7 +285,7 @@ void PlayerController::updateInteraction(){
scripting::on_block_interact(player, target, x, y, z);
return;
}
if (target->model != BlockModel::xsprite){
if (!target->replaceable){
x = (iend.x)+(norm.x);
y = (iend.y)+(norm.y);
z = (iend.z)+(norm.z);