From d59e748c0148e70581ff695427e6eff86e5b9447 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Fri, 8 Jul 2022 19:40:30 -0700 Subject: [PATCH] Tiny hats - Fix train hat on smouldering blaze burner - Fix blaze burners on contraptions tracking invisible players --- .../burner/BlazeBurnerMovementBehaviour.java | 2 +- .../processing/burner/BlazeBurnerRenderer.java | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerMovementBehaviour.java b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerMovementBehaviour.java index c01f96181..28d52ed0f 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerMovementBehaviour.java +++ b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerMovementBehaviour.java @@ -83,7 +83,7 @@ public class BlazeBurnerMovementBehaviour implements MovementBehaviour { } Entity player = Minecraft.getInstance().cameraEntity; - if (player != null) { + if (player != null && !player.isInvisible()) { Vec3 applyRotation = context.contraption.entity.reverseRotation(player.position() .subtract(context.position), 1); double dx = applyRotation.x; diff --git a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerRenderer.java b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerRenderer.java index 271b35e47..8e9c113c8 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerRenderer.java +++ b/src/main/java/com/simibubi/create/content/contraptions/processing/burner/BlazeBurnerRenderer.java @@ -125,10 +125,19 @@ public class BlazeBurnerRenderer extends SafeTileEntityRenderer