From a7ed7a71d51284107555aab16bf90ee581ff94fd Mon Sep 17 00:00:00 2001 From: Sunny Kim <58885089+sk7725@users.noreply.github.com> Date: Mon, 19 Jul 2021 16:40:57 +0900 Subject: [PATCH] drawSpinSprite --- core/src/mindustry/world/blocks/production/Drill.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/production/Drill.java b/core/src/mindustry/world/blocks/production/Drill.java index 8c627ea493..b7125f07d8 100644 --- a/core/src/mindustry/world/blocks/production/Drill.java +++ b/core/src/mindustry/world/blocks/production/Drill.java @@ -54,6 +54,7 @@ public class Drill extends Block{ public float updateEffectChance = 0.02f; public boolean drawRim = false; + public boolean drawSpinSprite = true; public Color heatColor = Color.valueOf("ff5512"); public @Load("@-rim") TextureRegion rimRegion; public @Load("@-rotator") TextureRegion rotatorRegion; @@ -314,7 +315,8 @@ public class Drill extends Block{ Draw.color(); } - Draw.rect(rotatorRegion, x, y, timeDrilled * rotateSpeed); + if(drawSpinSprite) Drawf.spinSprite(rotatorRegion, x, y, timeDrilled * rotateSpeed); + else Draw.rect(rotatorRegion, x, y, timeDrilled * rotateSpeed); Draw.rect(topRegion, x, y);