mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
fix highest entry count
This commit is contained in:
parent
7daf7dbbdd
commit
499701c3bc
@ -174,12 +174,7 @@ public class SpecTypePair extends BlockContainer<Block>
|
|||||||
throw new IOException("Unexpected block: "+headerBlock.toString()+", Should be: "+ChunkType.SPEC);
|
throw new IOException("Unexpected block: "+headerBlock.toString()+", Should be: "+ChunkType.SPEC);
|
||||||
}
|
}
|
||||||
public int getHighestEntryCount(){
|
public int getHighestEntryCount(){
|
||||||
int specEntryCount=getSpecBlock().getEntryCount();
|
return getTypeBlockArray().getHighestEntryCount();
|
||||||
int typeEntryCount=getTypeBlockArray().getHighestEntryCount();
|
|
||||||
if(specEntryCount>typeEntryCount){
|
|
||||||
return specEntryCount;
|
|
||||||
}
|
|
||||||
return typeEntryCount;
|
|
||||||
}
|
}
|
||||||
public TypeString getTypeString(){
|
public TypeString getTypeString(){
|
||||||
PackageBlock packageBlock = getPackageBlock();
|
PackageBlock packageBlock = getPackageBlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user