Fixed pipe Icons not being properly refreshed when switching texture packs. Closes #740

This commit is contained in:
Krapht 2013-04-16 07:57:39 +02:00
parent b528468f99
commit 5705eb7ed7
3 changed files with 0 additions and 13 deletions

View file

@ -43,8 +43,6 @@ public class GateIconProvider implements IIconProvider {
@SideOnly(Side.CLIENT)
private Icon[] icons;
private boolean registered = false;
@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(int pipeIconIndex) {
@ -54,8 +52,6 @@ public class GateIconProvider implements IIconProvider {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
if (registered) return;
registered = true;
icons = new Icon[MAX];
icons[GateIconProvider.Gate_Dark] = iconRegister.registerIcon("buildcraft:gate_dark");

View file

@ -47,8 +47,6 @@ public class PipeIconProvider implements IIconProvider {
public static final int MAX = 34;
private boolean registered = false;
@SideOnly(Side.CLIENT)
private Icon[] _icons;
@ -61,8 +59,6 @@ public class PipeIconProvider implements IIconProvider {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
if (registered) return;
registered = true;
_icons = new Icon[PipeIconProvider.MAX];

View file

@ -22,8 +22,6 @@ public class WireIconProvider implements IIconProvider {
@SideOnly(Side.CLIENT)
private Icon[] icons;
private boolean registered = false;
@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(int pipeIconIndex) {
@ -33,9 +31,6 @@ public class WireIconProvider implements IIconProvider {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister) {
if (registered) return;
registered = true;
icons = new Icon[MAX];
icons[WireIconProvider.Texture_Red_Dark] = iconRegister.registerIcon("buildcraft:texture_red_dark");