This commit is contained in:
Anuken
2023-01-12 17:01:47 -05:00
parent e92d5d2d2d
commit 54962a158d
2 changed files with 5 additions and 1 deletions

View File

@@ -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;

View File

@@ -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));