ReworkedExtraInfoLoading

This commit is contained in:
DarkGuardsman 2013-09-22 00:05:28 -04:00
parent 50d359f048
commit dc6e0ccb3d
4 changed files with 30 additions and 27 deletions

View file

@ -10,7 +10,7 @@ import dark.core.common.DMCreativeTab;
import dark.core.prefab.machine.BlockMachine;
import dark.core.registration.ModObjectRegistry.BlockBuildData;
public abstract class BlockAssembly extends BlockMachine
public class BlockAssembly extends BlockMachine
{
public Icon machine_icon;

View file

@ -20,6 +20,7 @@ import cpw.mods.fml.relauncher.SideOnly;
import dark.assembly.client.render.BlockRenderingHandler;
import dark.assembly.common.machine.BlockAssembly;
import dark.assembly.common.machine.belt.TileEntityConveyorBelt.SlantType;
import dark.core.common.DarkMain;
import dark.core.registration.ModObjectRegistry.BlockBuildData;
/** The block for the actual conveyor belt!
@ -335,7 +336,7 @@ public class BlockConveyorBelt extends BlockAssembly
@Override
public int getRenderType()
{
return BlockRenderingHandler.BLOCK_RENDER_ID;
return DarkMain.zeroRendering ? 0 : BlockRenderingHandler.BLOCK_RENDER_ID;
}
@Override

View file

@ -18,6 +18,7 @@ import universalelectricity.prefab.tile.IRotatable;
import dark.assembly.api.IBelt;
import dark.assembly.common.AssemblyLine;
import dark.assembly.common.machine.TileEntityAssembly;
import dark.core.common.DarkMain;
import dark.core.network.PacketHandler;
/** Conveyer belt TileEntity that allows entities of all kinds to be moved
@ -74,7 +75,8 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IPacke
{
this.worldObj.playSound(this.xCoord, this.yCoord, this.zCoord, "mods.assemblyline.conveyor", 0.5f, 0.7f, true);
}
if (!DarkMain.zeroAnimation)
{
this.wheelRotation = (40 + this.wheelRotation) % 360;
float wheelRotPct = wheelRotation / 360f;
@ -97,6 +99,7 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IPacke
this.animFrame = MAX_SLANT_FRAME;
}
}
}
}

View file

@ -14,7 +14,6 @@ import net.minecraftforge.common.Configuration;
import net.minecraftforge.oredict.OreDictionary;
import universalelectricity.core.UniversalElectricity;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.api.ProcessorRecipes.ProcessorType;
@ -22,12 +21,11 @@ import dark.assembly.client.render.BlockRenderingHandler;
import dark.assembly.common.AssemblyLine;
import dark.assembly.common.CommonProxy;
import dark.core.common.DMCreativeTab;
import dark.core.prefab.IExtraObjectInfo;
import dark.core.prefab.helpers.Pair;
import dark.core.prefab.machine.BlockMachine;
import dark.core.registration.ModObjectRegistry.BlockBuildData;
public class BlockProcessor extends BlockMachine implements IExtraObjectInfo
public class BlockProcessor extends BlockMachine
{
public BlockProcessor()
@ -90,6 +88,7 @@ public class BlockProcessor extends BlockMachine implements IExtraObjectInfo
@Override
public void loadExtraConfigs(Configuration config)
{
super.loadExtraConfigs(config);
for (ProcessorData data : ProcessorData.values())
{
data.enabled = config.get(data.unlocalizedName, "Enabled", true).getBoolean(true);