mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
1 parent
3a21b1895e
commit
a993d70687
2 files changed
+5
-5
No files matched your search
@@ -36,12 +36,12 @@ public class ControlDatabaseIndividualDisplay extends ControlItemDisplay impleme
|
||||
Window window = Window.get(this);
|
||||
GameProfile username = window.getUsername();
|
||||
|
||||
if (state == EnumDiscoveryState.UNDETERMINED) {
|
||||
if (window instanceof WindowAbstractDatabase && ((WindowAbstractDatabase) window).isNEI) {
|
||||
state = EnumDiscoveryState.SHOW;
|
||||
} else if (state == EnumDiscoveryState.UNDETERMINED) {
|
||||
state = system.isSpeciesDiscovered(species, window.getWorld(), username)
|
||||
? EnumDiscoveryState.DISCOVERED
|
||||
: EnumDiscoveryState.UNDISCOVERED;
|
||||
} else if (window instanceof WindowAbstractDatabase && ((WindowAbstractDatabase) window).isNEI) {
|
||||
state = EnumDiscoveryState.SHOW;
|
||||
}
|
||||
|
||||
discovered = state;
|
||||
|
||||
@@ -34,8 +34,8 @@ public class ItemDictionary extends Item {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int par1) {
|
||||
return (par1 == 0) ? itemIcon : iconMaster;
|
||||
public IIcon getIconFromDamage(int damage) {
|
||||
return (damage == 0) ? itemIcon : iconMaster;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user