mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: extended block always main segment passed to on_iteract
This commit is contained in:
parent
d59fac61bb
commit
fbca439b2d
3 changed files with 15 additions and 2 deletions
|
|
@ -337,7 +337,9 @@ void Chunks::setRotation(int32_t x, int32_t y, int32_t z, uint8_t index) {
|
|||
return;
|
||||
}
|
||||
if (def.rt.extended) {
|
||||
setRotationExtended(def, vox->state, {x, y, z}, index);
|
||||
auto origin = seekOrigin({x, y, z}, def, vox->state);
|
||||
vox = get(origin);
|
||||
setRotationExtended(def, vox->state, origin, index);
|
||||
} else {
|
||||
vox->state.rotation = index;
|
||||
auto chunk = getChunkByVoxel(x, y, z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue