From 54962a158d93207d773b3283075fec097b10314f Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 12 Jan 2023 17:01:47 -0500 Subject: [PATCH] Fixed #8168 --- core/src/mindustry/content/Blocks.java | 2 ++ .../src/mindustry/world/blocks/production/GenericCrafter.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 616df2dfd0..2ad1f08e85 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -1277,6 +1277,7 @@ public class Blocks{ heatOutput = 3f; regionRotated1 = 1; ambientSound = Sounds.hum; + itemCapacity = 0; consumePower(100f / 60f); }}; @@ -1287,6 +1288,7 @@ public class Blocks{ drawer = new DrawMulti(new DrawRegion("-bottom"), new DrawLiquidTile(Liquids.slag), new DrawDefault(), new DrawHeatOutput()); size = 3; + itemCapacity = 0; liquidCapacity = 40f; rotateDraw = false; regionRotated1 = 1; diff --git a/core/src/mindustry/world/blocks/production/GenericCrafter.java b/core/src/mindustry/world/blocks/production/GenericCrafter.java index c14c3b5036..9112691292 100644 --- a/core/src/mindustry/world/blocks/production/GenericCrafter.java +++ b/core/src/mindustry/world/blocks/production/GenericCrafter.java @@ -61,7 +61,9 @@ public class GenericCrafter extends Block{ public void setStats(){ stats.timePeriod = craftTime; super.setStats(); - stats.add(Stat.productionTime, craftTime / 60f, StatUnit.seconds); + if((hasItems && itemCapacity > 0) || outputItems != null){ + stats.add(Stat.productionTime, craftTime / 60f, StatUnit.seconds); + } if(outputItems != null){ stats.add(Stat.output, StatValues.items(craftTime, outputItems));