Crafter bugfixes

This commit is contained in:
Anuken
2019-04-04 21:49:45 -04:00
parent 2dee221861
commit cbef6adeb1
3 changed files with 6 additions and 4 deletions

View File

@ -517,18 +517,19 @@ public class Blocks implements ContentList{
cryofluidMixer = new GenericCrafter("cryofluidmixer"){{
requirements(Category.crafting, ItemStack.with(Items.lead, 130, Items.silicon, 80, Items.thorium, 90));
outputLiquid = new LiquidStack(Liquids.cryofluid, 0.3f);
outputLiquid = new LiquidStack(Liquids.cryofluid, 0.6f);
craftTime = 5f;
size = 2;
hasPower = true;
hasItems = true;
hasLiquids = true;
rotate = false;
solid = true;
outputsLiquid = true;
consumes.power(1f);
consumes.item(Items.titanium);
consumes.liquid(Liquids.water, 0.3f);
consumes.liquid(Liquids.water, 0.6f);
int liquidRegion = reg("-liquid"), topRegion = reg("-top"), bottomRegion = reg("-bottom");
@ -629,6 +630,7 @@ public class Blocks implements ContentList{
health = 320;
hasLiquids = true;
hasPower = true;
craftEffect = Fx.none;
consumes.item(Items.sporePod, 1);
consumes.power(0.60f);

View File

@ -163,7 +163,7 @@ public class Renderer implements ApplicationListener{
graphics.clear(clearColor);
if(!graphics.isHidden() && (Core.settings.getBool("animatedwater") || Core.settings.getBool("animatedshields")) && shieldBuffer.getWidth() != graphics.getWidth() || shieldBuffer.getHeight() != graphics.getHeight()){
if(!graphics.isHidden() && (Core.settings.getBool("animatedwater") || Core.settings.getBool("animatedshields")) && (shieldBuffer.getWidth() != graphics.getWidth() || shieldBuffer.getHeight() != graphics.getHeight())){
shieldBuffer.resize(graphics.getWidth(), graphics.getHeight());
}

View File

@ -30,7 +30,7 @@ public class GenericCrafter extends Block{
protected LiquidStack outputLiquid;
protected float craftTime = 80;
protected Effect craftEffect = Fx.purify;
protected Effect craftEffect = Fx.none;
protected Effect updateEffect = Fx.none;
protected float updateEffectChance = 0.04f;