Handled null entries in dats that weren't repacked

This commit is contained in:
Vhati 2017-12-04 09:26:36 -05:00
parent d25fdbc56a
commit bfd5f18fc3

View file

@ -418,7 +418,12 @@ public class PkgPack extends AbstractPack {
entry.dataOffset = readBigUInt(); entry.dataOffset = readBigUInt();
entry.dataSize = readBigUInt(); entry.dataSize = readBigUInt();
entry.unpackedSize = 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 ); pathToIndexMap = new HashMap<String, Integer>( entryCount );