mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-30 14:39:10 +07:00
Crafter bugfixes
This commit is contained in:
@ -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);
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user