mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: block states cause crash for rotatable blocks
This commit is contained in:
parent
c9fb33132f
commit
29ca6e969c
3 changed files with 6 additions and 6 deletions
|
|
@ -199,7 +199,7 @@ void WorldRenderer::renderBlockSelection(Camera* camera, Shader* linesShader) {
|
|||
const glm::vec3 norm = PlayerController::selectedBlockNormal;
|
||||
|
||||
const std::vector<AABB>& hitboxes = block->rotatable
|
||||
? block->rt.hitboxes[PlayerController::selectedBlockStates]
|
||||
? block->rt.hitboxes[PlayerController::selectedBlockRotation]
|
||||
: block->hitboxes;
|
||||
|
||||
linesShader->use();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue