mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +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;
|
||||
|
||||
Reference in new issue
Block a user