From add19ed7f126ffe64eec725117eea98b716132bc Mon Sep 17 00:00:00 2001 From: Patrick 'Quezler' Mounier Date: Tue, 7 Jan 2020 10:17:24 +0100 Subject: [PATCH] Start rotating 50% through reload --- .../src/mindustry/world/blocks/distribution/CraterConveyor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java index e8f9e9471a..0536e035bf 100644 --- a/core/src/mindustry/world/blocks/distribution/CraterConveyor.java +++ b/core/src/mindustry/world/blocks/distribution/CraterConveyor.java @@ -73,7 +73,7 @@ public class CraterConveyor extends BaseConveyor{ float b = tile.rotation() * 90; if(from.rotation() == 3 && tile.rotation() == 0) a = -1 * 90; if(from.rotation() == 0 && tile.rotation() == 3) a = 4 * 90; - float rotation = Mathf.lerp(a, b, Interpolation.linear.apply(1f - entity.reload)); + float rotation = Mathf.lerp(a, b, Interpolation.linear.apply(1f - Mathf.clamp(entity.reload * 2, 0f, 1f))); // draw crater Draw.rect(crater, Tmp.v1.x, Tmp.v1.y, rotation - 90);