From a9b55f35be728d857731cffb5198a1bfa8c8f859 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 30 Jan 2024 15:30:09 +0300 Subject: [PATCH] torches rotation fix --- src/logic/PlayerController.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/logic/PlayerController.cpp b/src/logic/PlayerController.cpp index 4ae09b9d..14d6d06c 100644 --- a/src/logic/PlayerController.cpp +++ b/src/logic/PlayerController.cpp @@ -293,7 +293,11 @@ void PlayerController::updateInteraction(){ x = (iend.x)+(norm.x); y = (iend.y)+(norm.y); z = (iend.z)+(norm.z); - } + } else { + if (def->rotations.name == "pipe") { + states = BLOCK_DIR_UP; + } + } vox = chunks->get(x, y, z); blockid_t chosenBlock = def->rt.id; if (vox && (target = indices->getBlockDef(vox->id))->replaceable) {