From ef9a2b8e65cd9bf38349f5a7ced6fb2d1b5f05e6 Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Thu, 3 Dec 2015 22:49:48 +0000 Subject: [PATCH] Lowered the Pure Daisy's craft time to 60 seconds (from 80). --- .../botania/common/block/subtile/SubTilePureDaisy.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java b/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java index 3ff872c9a..94a785b8c 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java +++ b/src/main/java/vazkii/botania/common/block/subtile/SubTilePureDaisy.java @@ -27,6 +27,9 @@ public class SubTilePureDaisy extends SubTileEntity { private static final String TAG_POSITION = "position"; private static final String TAG_TICKS_REMAINING = "ticksRemaining"; + + private static final int TOTAL_TIME = 1200; + private static final int TIME_PER = TOTAL_TIME / 8; private static final int[][] POSITIONS = new int[][] { { -1, 0, -1 }, @@ -40,7 +43,7 @@ public class SubTilePureDaisy extends SubTileEntity { }; int positionAt = 0; - int[] ticksRemaining = new int[] { 200, 200, 200, 200, 200, 200, 200, 200 }; + int[] ticksRemaining = new int[] { TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER, TIME_PER }; @Override public void onUpdate() { @@ -70,7 +73,7 @@ public class SubTilePureDaisy extends SubTileEntity { Botania.proxy.sparkleFX(supertile.getWorldObj(), coords.posX + Math.random(), coords.posY + Math.random(), coords.posZ + Math.random(), 1F, 1F, 1F, (float) Math.random(), 5); if(ticksRemaining[positionAt] <= 0) { - ticksRemaining[positionAt] = 200; + ticksRemaining[positionAt] = TIME_PER; if(recipe.set(world,coords.posX, coords.posY, coords.posZ, this)) { for(int i = 0; i < 25; i++) { @@ -84,7 +87,7 @@ public class SubTilePureDaisy extends SubTileEntity { supertile.getWorldObj().playAuxSFX(2001, coords.posX, coords.posY, coords.posZ, Block.getIdFromBlock(recipe.getOutput()) + (recipe.getOutputMeta() << 12)); } } - } else ticksRemaining[positionAt] = 200; + } else ticksRemaining[positionAt] = TIME_PER; } }