mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Factory textures & block states, working perfectly
This commit is contained in:
1 parent
6a14acd987
commit
758bc49515
45 files changed
+928
-63
No files matched your search
@@ -769,13 +769,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)
|
||||
{
|
||||
secondaryEnergyPerTick = getSecondaryEnergyPerTick(recipeType);
|
||||
}
|
||||
|
||||
upgradeComponent.setSupported(Upgrade.GAS, recipeType.fuelEnergyUpgrades());
|
||||
recipeTicks = dataStream.readInt();
|
||||
controlType = RedstoneControl.values()[dataStream.readInt()];
|
||||
sorting = dataStream.readBoolean();
|
||||
@@ -783,6 +777,16 @@ public class TileEntityFactory extends TileEntityNoisyElectricBlock implements I
|
||||
lastUsage = dataStream.readDouble();
|
||||
infuseStored.amount = dataStream.readInt();
|
||||
infuseStored.type = InfuseRegistry.get(PacketHandler.readString(dataStream));
|
||||
|
||||
if(recipeType != oldRecipe)
|
||||
{
|
||||
secondaryEnergyPerTick = getSecondaryEnergyPerTick(recipeType);
|
||||
|
||||
if(!upgraded)
|
||||
{
|
||||
MekanismUtils.updateBlock(worldObj, getPos());
|
||||
}
|
||||
}
|
||||
|
||||
for(int i = 0; i < tier.processes; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user