commit dd8c5356a70ec907c3f65ad932f82a50e7ce29a1
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Feb 14 13:21:09 2022 +0100

    solve the 'wasDownloadableButNowIsBuiltIn()' bug in 1.9.6 and 1.9.7.

diff --git a/src/main/java/org/distorted/objects/RubikObjectList.java b/src/main/java/org/distorted/objects/RubikObjectList.java
index 2539c843..1570d5f5 100644
--- a/src/main/java/org/distorted/objects/RubikObjectList.java
+++ b/src/main/java/org/distorted/objects/RubikObjectList.java
@@ -178,8 +178,18 @@ public class RubikObjectList
     if( ordinal==ObjectConstants.REX_3  ) return 16;
     if( ordinal==ObjectConstants.MIRR_3 ) return 16;
 
-    ObjectType type = ObjectType.getObject(ordinal);
-    return type.getNumScramble();
+    // in 1.9.6 & 1.9.7 there is a bug with downloadable objects (in this very function!):
+    // All of those have DBLevel equal to CUBE_3's DBlevel (in 1.9.7!), i.e. 17.
+    // This will be a problem when we release a new version of the app which has some of the
+    // previously downloadable objects built-in. Thus: in case of those, we need to keep using
+    // 17.
+
+    if( ObjectType.wasDownloadableButNowIsBuiltIn(ordinal) )
+      {
+      return 17;
+      }
+
+    return ObjectType.getObject(ordinal).getNumScramble();
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
