File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
java/com/tungsten/fcl/ui/download Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2525import com .tungsten .fclcore .download .optifine .OptiFineRemoteVersion ;
2626import com .tungsten .fclcore .download .quilt .QuiltAPIRemoteVersion ;
2727import com .tungsten .fclcore .download .quilt .QuiltRemoteVersion ;
28+ import com .tungsten .fclcore .util .versioning .GameVersionNumber ;
2829import com .tungsten .fcllibrary .component .FCLAdapter ;
2930import com .tungsten .fcllibrary .component .theme .ThemeEngine ;
3031import com .tungsten .fcllibrary .component .view .FCLImageButton ;
@@ -137,7 +138,12 @@ else if (remoteVersion instanceof GameRemoteVersion) {
137138 switch (remoteVersion .getVersionType ()) {
138139 case RELEASE :
139140 return getContext ().getDrawable (R .drawable .img_grass );
141+ case PENDING :
142+ case UNOBFUSCATED :
140143 case SNAPSHOT :
144+ if (GameVersionNumber .asGameVersion (remoteVersion .getGameVersion ()).isAprilFools ()) {
145+ return getContext ().getDrawable (R .drawable .april_fools );
146+ }
141147 return getContext ().getDrawable (R .drawable .img_command );
142148 default :
143149 return getContext ().getDrawable (R .drawable .img_craft_table );
@@ -152,6 +158,7 @@ private String getTag(RemoteVersion remoteVersion) {
152158 switch (remoteVersion .getVersionType ()) {
153159 case RELEASE :
154160 return getContext ().getString (R .string .version_game_release );
161+ case UNOBFUSCATED :
155162 case SNAPSHOT :
156163 return getContext ().getString (R .string .version_game_snapshot );
157164 default :
You can’t perform that action at this time.
0 commit comments