Merge pull request #195 from AFK1/fix

menu fix and block placer fix
This commit is contained in:
MihailRis
2024-03-20 10:27:07 +03:00
committed by GitHub
4 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ void PlayerController::updateInteraction(){
vox = chunks->get(x, y, z);
blockid_t chosenBlock = def->rt.id;
if (vox && (target = indices->getBlockDef(vox->id))->replaceable) {
if (!level->physics->isBlockInside(x,y,z, player->hitbox.get())
if (!level->physics->isBlockInside(x,y,z,def,states, player->hitbox.get())
|| !def->obstacle){
if (def->grounded && !chunks->isSolidBlock(x, y-1, z)) {
chosenBlock = 0;