Removed some unused textures

This commit is contained in:
Calclavia 2013-12-22 13:31:04 +08:00
parent 8c63bbb457
commit 3bdcceddf1
5 changed files with 13 additions and 11 deletions

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

View file

@ -14,7 +14,6 @@ import resonantinduction.ResonantInduction;
import resonantinduction.TabRI;
import resonantinduction.Utility;
import resonantinduction.wire.part.FlatWire;
import resonantinduction.wire.render.RenderPartWire;
import universalelectricity.api.energy.UnitDisplay;
import universalelectricity.api.energy.UnitDisplay.Unit;
import codechicken.lib.vec.BlockCoord;
@ -27,6 +26,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ItemPartWire extends JItemMultiPart
{
public static Icon flatWireTexture;
private Icon[] icons = new Icon[EnumWireMaterial.values().length];
public ItemPartWire(int id)
@ -86,7 +86,7 @@ public class ItemPartWire extends JItemMultiPart
icons[material.ordinal()] = register.registerIcon(ResonantInduction.PREFIX + "wire." + EnumWireMaterial.values()[material.ordinal()].getName().toLowerCase());
}
RenderPartWire.registerIcons(register);
flatWireTexture = register.registerIcon(ResonantInduction.PREFIX + "models/flatWire");
}
@Override

View file

@ -14,8 +14,8 @@ import org.lwjgl.opengl.GL11;
import resonantinduction.Utility;
import resonantinduction.wire.EnumWireMaterial;
import resonantinduction.wire.IAdvancedConductor;
import resonantinduction.wire.ItemPartWire;
import resonantinduction.wire.render.RenderFlatWire;
import resonantinduction.wire.render.RenderPartWire;
import codechicken.lib.colour.Colour;
import codechicken.lib.data.MCDataInput;
import codechicken.lib.data.MCDataOutput;
@ -198,7 +198,7 @@ public class FlatWire extends PartWireBase implements TFacePart, JNormalOcclusio
connMap = 0;
updateInternalConnections();
if (updateOpenConnections())
{
updateExternalConnections();
@ -212,14 +212,14 @@ public class FlatWire extends PartWireBase implements TFacePart, JNormalOcclusio
public void onAdded()
{
super.onAdded();
if (!world().isRemote)
{
updateOpenConnections();
boolean changed = updateInternalConnections();
// don't use || because it's fail fast
changed |= updateExternalConnections();
if (changed)
{
sendConnUpdate();
@ -279,10 +279,12 @@ public class FlatWire extends PartWireBase implements TFacePart, JNormalOcclusio
for (int r = 0; r < 4; r++)
{
/*if (!maskOpen(r))
{
continue;
}*/
/*
* if (!maskOpen(r))
* {
* continue;
* }
*/
if (connectStraight(r))
{
@ -621,7 +623,7 @@ public class FlatWire extends PartWireBase implements TFacePart, JNormalOcclusio
@SideOnly(Side.CLIENT)
public Icon getIcon()
{
return RenderPartWire.lainWireIcon;
return ItemPartWire.flatWireTexture;
}
public Colour getColour()