mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
allows to put non-square blocks next to yourself
This commit is contained in:
parent
3d4bfeb442
commit
9b0cc01e68
3 changed files with 23 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue