Fix #566 Habitat Locator icon is broken on 32x + texture packs

This commit is contained in:
mezz committed 2015-03-26 22:22:00 -07:00
1 parent d4cd2153ef
commit e48fbe948e
2 files changed
+6 -4

No files matched your search

@@ -146,6 +146,8 @@ public class ItemHabitatLocator extends ItemInventoried {
}
private static final String iconName = "forestry:biomefinder";
private Set<BiomeGenBase> biomesToSearch = new HashSet<BiomeGenBase>();
private boolean biomeFound = false;
private int searchRadiusIteration = 0;
@@ -173,8 +175,8 @@ public class ItemHabitatLocator extends ItemInventoried {
@Override
public void registerIcons(IIconRegister register) {
if (register instanceof TextureMap) {
TextureAtlasSprite texture = new TextureHabitatLocator();
((TextureMap) register).setTextureEntry("forestry:biomefinder", texture);
TextureAtlasSprite texture = new TextureHabitatLocator(iconName);
((TextureMap) register).setTextureEntry(iconName, texture);
itemIcon = texture;
}
}
@@ -30,8 +30,8 @@ public class TextureHabitatLocator extends TextureAtlasSprite {
public double currentAngle;
public double angleDelta;
public TextureHabitatLocator() {
super("biomefinder");
public TextureHabitatLocator(String iconName) {
super(iconName);
instance = this;
}