mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Fix #566 Habitat Locator icon is broken on 32x + texture packs
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user