Revision 9cd63ba8
Added by Leszek Koltunski 11 months ago
build.gradle | ||
---|---|---|
18 | 18 |
sourceCompatibility JavaVersion.VERSION_1_8 |
19 | 19 |
targetCompatibility JavaVersion.VERSION_1_8 |
20 | 20 |
} |
21 |
|
|
22 |
buildFeatures { |
|
23 |
buildConfig = true |
|
24 |
} |
|
25 |
|
|
21 | 26 |
namespace 'org.distorted.objectlib' |
22 | 27 |
} |
23 | 28 |
|
src/main/java/org/distorted/objectlib/helpers/ObjectSignature.java | ||
---|---|---|
311 | 311 |
// it can happen that there are no cycles in this layer: 2x1x2 axis 0 layer 0. |
312 | 312 |
if( cycles!=null && cycles.length>0 && cycles[0]!=null ) |
313 | 313 |
{ |
314 |
if( cycles[0].length==4 ) for(int[] cyc : cycles) ret.cycle4(turn,cyc); |
|
315 |
if( cycles[0].length==3 ) for(int[] cyc : cycles) ret.cycle3(turn,cyc); |
|
316 |
else for(int[] cyc : cycles) ret.cycle2(cyc); |
|
314 |
if( cycles[0].length==4 ) for(int[] cyc : cycles) ret.cycle4(turn,cyc);
|
|
315 |
else if( cycles[0].length==3 ) for(int[] cyc : cycles) ret.cycle3(turn,cyc);
|
|
316 |
else for(int[] cyc : cycles) ret.cycle2(cyc);
|
|
317 | 317 |
} |
318 | 318 |
} |
319 | 319 |
|
src/main/java/org/distorted/objectlib/json/JsonReader.java | ||
---|---|---|
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
if( longName.equals(OBJECT_NAME_CUBOID) || |
102 |
longName.equals(OBJECT_NAME_PYRAMINX) ) new ObjectSignature(shortName,signature); |
|
102 |
longName.equals(OBJECT_NAME_PYRAMINX) ) return new ObjectSignature(shortName,signature);
|
|
103 | 103 |
|
104 | 104 |
return new ObjectSignature(signature); |
105 | 105 |
} |
Also available in: Unified diff
build.gradle: include directive to create a 'BuildConfig.java'
2 fixes for proper scrambling of locally created bandaged cuboids.