Texture fixes for @CyanideX

This commit is contained in:
aidancbrady committed 2016-03-26 01:39:22 -04:00
1 parent 9d22b7277c
commit 97bd7198d1
2 files changed
+24 -13

No files matched your search

@@ -183,7 +183,7 @@ public class MekanismRenderer
for(DefIcon def : defaults)
{
if(def.icons.contains(side.ordinal()+6))
if(def.icons.contains(side.ordinal()+6) && def.overridesInactive)
{
textures[side.ordinal()+6] = def.defIcon;
found = true;
@@ -219,6 +219,10 @@ public class MekanismRenderer
public List<Integer> icons = new ArrayList<Integer>();
/** If this DefIcon should be prioritized over a machine's side-specific off texture
* if no on texture is present. */
public boolean overridesInactive = true;
public DefIcon(IIcon icon, int... is)
{
defIcon = icon;
@@ -229,6 +233,13 @@ public class MekanismRenderer
}
}
public DefIcon setOverrides(boolean b)
{
overridesInactive = b;
return this;
}
public static DefIcon getAll(IIcon icon)
{
return new DefIcon(icon, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);