fix: block states cause crash for rotatable blocks

This commit is contained in:
MihailRis
2024-05-30 18:17:21 +03:00
parent c9fb33132f
commit 29ca6e969c
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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();