Spore press craft time fix

This commit is contained in:
Anuken 2022-05-11 12:02:19 -04:00
parent 60cb4a2a73
commit 2beca30b0c
2 changed files with 2 additions and 1 deletions

View File

@ -1097,6 +1097,7 @@ public class Blocks{
sporePress = new GenericCrafter("spore-press"){{ sporePress = new GenericCrafter("spore-press"){{
requirements(Category.crafting, with(Items.lead, 35, Items.silicon, 30)); requirements(Category.crafting, with(Items.lead, 35, Items.silicon, 30));
liquidCapacity = 60f; liquidCapacity = 60f;
craftTime = 20f;
outputLiquid = new LiquidStack(Liquids.oil, 18f / 60f); outputLiquid = new LiquidStack(Liquids.oil, 18f / 60f);
size = 2; size = 2;
health = 320; health = 320;

View File

@ -145,7 +145,7 @@ public class GenericCrafter extends Block{
public void drawOverlay(float x, float y, int rotation){ public void drawOverlay(float x, float y, int rotation){
if(outputLiquids != null){ if(outputLiquids != null){
for(int i = 0; i < outputLiquids.length; i++){ for(int i = 0; i < outputLiquids.length; i++){
int dir = liquidOutputDirections.length > i && liquidOutputDirections[i]!=-1 ? liquidOutputDirections[i] + rotation : -1; int dir = liquidOutputDirections.length > i && liquidOutputDirections[i] != -1 ? liquidOutputDirections[i] + rotation : -1;
if(dir != -1){ if(dir != -1){
Draw.rect( Draw.rect(