Handled null entries in dats that weren't repacked
This commit is contained in:
parent
d25fdbc56a
commit
bfd5f18fc3
1 changed files with 6 additions and 1 deletions
|
@ -418,7 +418,12 @@ public class PkgPack extends AbstractPack {
|
|||
entry.dataOffset = readBigUInt();
|
||||
entry.dataSize = readBigUInt();
|
||||
entry.unpackedSize = readBigUInt();
|
||||
entryList.add( entry );
|
||||
|
||||
if ( entry.dataSize == 0 ) { // Null entry, dat wasn't repacked.
|
||||
entryList.add( null );
|
||||
} else {
|
||||
entryList.add( entry );
|
||||
}
|
||||
}
|
||||
|
||||
pathToIndexMap = new HashMap<String, Integer>( entryCount );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue