mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Merge pull request #73 from DrParadox7/1.7.10-CommunityEdition
Misc Bug Fixes and Rebalance
This commit is contained in:
5 files changed
+30
-41
No files matched your search
@@ -1077,19 +1077,18 @@ public class Mekanism
|
||||
}
|
||||
|
||||
//BioFuel Crusher Recipes
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.tallgrass), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.reeds), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.wheat_seeds), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.wheat), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.pumpkin_seeds), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.melon_seeds), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.apple), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.bread), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.potato), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.carrot), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.rotten_flesh), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.melon), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.pumpkin), new ItemStack(MekanismItems.BioFuel, 6));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.tallgrass), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.reeds), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.wheat_seeds), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.wheat), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.pumpkin_seeds), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.melon_seeds), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.apple), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.potato), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.carrot), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.rotten_flesh), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Items.melon), new ItemStack(MekanismItems.BioFuel, 3));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(Blocks.pumpkin), new ItemStack(MekanismItems.BioFuel, 4));
|
||||
|
||||
//Purification Chamber Recipes
|
||||
RecipeHandler.addPurificationChamberRecipe(new ItemStack(Blocks.gravel), new ItemStack(Items.flint));
|
||||
@@ -1207,7 +1206,7 @@ public class Mekanism
|
||||
}
|
||||
|
||||
//Chemical Oxidiser Recipes
|
||||
RecipeHandler.addChemicalOxidizerRecipe(new ItemStack(MekanismItems.BioFuel), new GasStack(GasRegistry.getGas("biomass"), 100));
|
||||
RecipeHandler.addChemicalOxidizerRecipe(new ItemStack(MekanismItems.BioFuel), new GasStack(GasRegistry.getGas("biomass"), 75));
|
||||
|
||||
//Fuels
|
||||
GameRegistry.registerFuelHandler(new IFuelHandler() {
|
||||
|
||||
@@ -397,7 +397,7 @@ public final class OreDictManager
|
||||
{
|
||||
if(ore.getItemDamage() == 0 || ore.getItemDamage() == OreDictionary.WILDCARD_VALUE)
|
||||
{
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(ore.getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(MekanismItems.BioFuel, 2));
|
||||
RecipeHandler.addCrusherRecipe(new ItemStack(ore.getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(MekanismItems.BioFuel, 1));
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
|
||||
@@ -80,6 +80,8 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeBoolean(general.OreDictOsmium);
|
||||
dataStream.writeBoolean(general.OreDictPlatinum);
|
||||
dataStream.writeBoolean(general.enableSiliconCompat);
|
||||
dataStream.writeInt(general.IC2SinkTier);
|
||||
dataStream.writeInt(general.IC2SourceTier);
|
||||
dataStream.writeInt(general.digitalMinerMaxRadius);
|
||||
|
||||
for(MachineType type : MachineType.getValidMachines())
|
||||
@@ -205,9 +207,6 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeBoolean(recipes.enableFlamethrower);
|
||||
dataStream.writeBoolean(recipes.enableGaugeDropper);
|
||||
dataStream.writeBoolean(recipes.enableTierInstaller);
|
||||
dataStream.writeInt(general.IC2SinkTier);
|
||||
dataStream.writeInt(general.IC2SourceTier);
|
||||
|
||||
|
||||
Tier.writeConfig(dataStream);
|
||||
|
||||
|
||||
@@ -42,12 +42,13 @@ public class RenderBioGenerator extends TileEntitySpecialRenderer
|
||||
{
|
||||
push();
|
||||
|
||||
int gasType = tileEntity.getFuelType();
|
||||
boolean isEthanol = tileEntity.getFuelType() == 1;
|
||||
System.out.println("IsEthanol= " + isEthanol);
|
||||
|
||||
MekanismRenderer.glowOn();
|
||||
GL11.glTranslatef((float)x, (float)y, (float)z);
|
||||
bindTexture(MekanismRenderer.getBlocksTexture());
|
||||
getDisplayList(gasType, ForgeDirection.getOrientation(tileEntity.facing)) [tileEntity.getScaledFuelLevel(stages-1)].render();
|
||||
getDisplayList(isEthanol, ForgeDirection.getOrientation(tileEntity.facing)) [tileEntity.getScaledFuelLevel(stages-1)].render();
|
||||
MekanismRenderer.glowOff();
|
||||
|
||||
pop();
|
||||
@@ -71,7 +72,7 @@ public class RenderBioGenerator extends TileEntitySpecialRenderer
|
||||
}
|
||||
|
||||
@SuppressWarnings("incomplete-switch")
|
||||
private DisplayInteger[] getDisplayList(int gasType, ForgeDirection side)
|
||||
private DisplayInteger[] getDisplayList(boolean isEthanol, ForgeDirection side)
|
||||
{
|
||||
if(energyDisplays.containsKey(side))
|
||||
{
|
||||
@@ -83,7 +84,7 @@ public class RenderBioGenerator extends TileEntitySpecialRenderer
|
||||
Model3D model3D = new Model3D();
|
||||
model3D.baseBlock = Blocks.water;
|
||||
|
||||
if (gasType == 1)
|
||||
if (isEthanol)
|
||||
model3D.setTexture(MekanismRenderer.ethanolIcon);
|
||||
else
|
||||
model3D.setTexture(MekanismRenderer.biomassIcon);
|
||||
|
||||
@@ -130,7 +130,7 @@ public class TileEntityBioGenerator extends TileEntityGenerator implements IGasH
|
||||
@Override
|
||||
public boolean canOperate()
|
||||
{
|
||||
return electricityStored < BASE_MAX_ENERGY && MekanismUtils.canFunction(this);
|
||||
return fuelTank.getStored() > 0 && electricityStored < BASE_MAX_ENERGY && MekanismUtils.canFunction(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -173,25 +173,13 @@ public class TileEntityBioGenerator extends TileEntityGenerator implements IGasH
|
||||
public int getFuelType()
|
||||
{
|
||||
if (fuelTank.getStored() > 0) {
|
||||
|
||||
Gas gas = fuelTank.getGas().getGas();
|
||||
if (gas != null && isValidGas(gas)) {
|
||||
if (gas == GasRegistry.getGas("bioethanol"))
|
||||
return 1; //Ethanol
|
||||
}
|
||||
if (isValidGas(gas) && gas == GasRegistry.getGas("bioethanol"))
|
||||
return 1;
|
||||
}
|
||||
return 0; //Biogas
|
||||
}
|
||||
|
||||
public int getTypeGas()
|
||||
{
|
||||
if(fuelTank.getGas().getGas() == GasRegistry.getGas("bioethanol"))
|
||||
{
|
||||
return 1; //Orange
|
||||
}
|
||||
return 0; //Green
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the scaled fuel level for the GUI.
|
||||
* @param i - multiplier
|
||||
@@ -229,10 +217,12 @@ public class TileEntityBioGenerator extends TileEntityGenerator implements IGasH
|
||||
|
||||
public boolean isValidGas(Gas gas)
|
||||
{
|
||||
if (gas == GasRegistry.getGas("biomass") || gas == GasRegistry.getGas("bioethanol")){
|
||||
return true;}
|
||||
else
|
||||
return false;
|
||||
if (gas != null) {
|
||||
if (gas == GasRegistry.getGas("biomass") || gas == GasRegistry.getGas("bioethanol")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user