Localisation, icon, fixes.

This commit is contained in:
Ben Spiers 2015-03-21 19:07:24 +00:00
parent 2e8edb281c
commit 83e41478e5
7 changed files with 12 additions and 2 deletions

View file

@ -113,6 +113,7 @@ public class MekanismItems
GameRegistry.registerItem(SpeedUpgrade, "SpeedUpgrade");
GameRegistry.registerItem(EnergyUpgrade, "EnergyUpgrade");
GameRegistry.registerItem(FilterUpgrade, "FilterUpgrade");
GameRegistry.registerItem(GasUpgrade, "GasUpgrade");
GameRegistry.registerItem(Robit, "Robit");
GameRegistry.registerItem(AtomicDisassembler, "AtomicDisassembler");
GameRegistry.registerItem(EnrichedAlloy, "EnrichedAlloy");

View file

@ -299,7 +299,9 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
if(tileEntity instanceof TileEntityFactory)
{
((TileEntityFactory)tileEntity).recipeType = RecipeType.values()[getRecipeType(stack)];
RecipeType recipeType = RecipeType.values()[getRecipeType(stack)];
((TileEntityFactory)tileEntity).recipeType = recipeType;
((TileEntityFactory)tileEntity).upgradeComponent.setSupported(Upgrade.GAS, recipeType.fuelEnergyUpgrades());
world.notifyBlocksOfNeighborChange(x, y, z, tileEntity.getBlockType());
}

View file

@ -131,6 +131,7 @@ public abstract class TileEntityAdvancedElectricMachine<RECIPE extends AdvancedM
factory.ejectorComponent.tileEntity = factory;
factory.ejectorComponent.trackers = new int[factory.ejectorComponent.sideData.availableSlots.length];
factory.recipeType = type;
factory.upgradeComponent.setSupported(Upgrade.GAS, type.fuelEnergyUpgrades());
//Advanced Machine
factory.gasTank.setGas(gasTank.getGas());

View file

@ -100,6 +100,7 @@ public abstract class TileEntityElectricMachine<RECIPE extends BasicMachineRecip
factory.ejectorComponent.tileEntity = factory;
factory.ejectorComponent.trackers = new int[factory.ejectorComponent.sideData.availableSlots.length];
factory.recipeType = type;
factory.upgradeComponent.setSupported(Upgrade.GAS, type.fuelEnergyUpgrades());
factory.inventory[5] = inventory[0];
factory.inventory[1] = inventory[1];

View file

@ -669,6 +669,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
clientActive = dataStream.readBoolean();
RecipeType oldRecipe = recipeType;
recipeType = RecipeType.values()[dataStream.readInt()];
upgradeComponent.setSupported(Upgrade.GAS, recipeType.fuelEnergyUpgrades());
if(recipeType != oldRecipe)
{
@ -716,6 +717,7 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
clientActive = isActive = nbtTags.getBoolean("isActive");
RecipeType oldRecipe = recipeType;
recipeType = RecipeType.values()[nbtTags.getInteger("recipeType")];
upgradeComponent.setSupported(Upgrade.GAS, recipeType.fuelEnergyUpgrades());
if(recipeType != oldRecipe)
{

View file

@ -11,6 +11,7 @@ item.EnergyTablet.name=Energy Tablet
item.SpeedUpgrade.name=Speed Upgrade
item.EnergyUpgrade.name=Energy Upgrade
item.FilterUpgrade.name=Filter Upgrade
item.GasUpgrade.name=Gas Upgrade
item.Robit.name=Robit
item.AtomicDisassembler.name=Atomic Disassembler
item.ElectricBow.name=Electric Bow
@ -339,6 +340,8 @@ upgrade.speed=Speed
upgrade.speed.desc=Increases speed of machinery.
upgrade.filter=Filter
upgrade.filter.desc=A filter that separates !nheavy water from regular water.
upgrade.gas=Gas
upgrade.gas.desc=Increases the efficiency !nof gas-using machinery.
//Key description text
key.mode=Mode Switch

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B