From caa25b811bbf615f084cdf3baea52bb630ef3012 Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Fri, 6 Mar 2020 10:22:37 +0100 Subject: [PATCH] Condense single use rotation --- .../mindustry/world/blocks/distribution/CraterConveyor.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index e336756d62..0f57f099bb 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -96,11 +96,8 @@ public class CraterConveyor extends Block implements Autotiler{ if(from.rotation() == 3 && tile.rotation() == 0) a = -1 * 90; if(from.rotation() == 0 && tile.rotation() == 3) a = 4 * 90; - // rotation - float rotation = Mathf.lerp(a, b, Interpolation.smooth.apply(1f - Mathf.clamp(entity.reload * 2, 0f, 1f))); - // crater - Draw.rect(regions[7], Tmp.v1.x, Tmp.v1.y, rotation); + Draw.rect(regions[7], Tmp.v1.x, Tmp.v1.y, Mathf.lerp(a, b, Interpolation.smooth.apply(1f - Mathf.clamp(entity.reload * 2, 0f, 1f)))); // item float size = (itemSize / 2f) + entity.items.total() * 0.1f / (itemCapacity / 8f);