Don't check overlay hash for overlays that didn't exist before (#2136)

This commit is contained in:
Lucwousin
2019-12-16 21:06:17 +01:00
committed by Kyle
parent 9c7d4fae81
commit 8341dc9fa3

View File

@@ -50,6 +50,9 @@ public abstract class RSAbstractArchiveMixin implements RSAbstractArchive
final Logger log = client.getLogger(); final Logger log = client.getLogger();
final String path = String.format("/runelite/%s/%s", archiveId, groupId); final String path = String.format("/runelite/%s/%s", archiveId, groupId);
// rsData will be null if this script didn't exist at first
if (rsData != null)
{
String overlayHash, originalHash; String overlayHash, originalHash;
try (final InputStream hashIn = getClass().getResourceAsStream(path + ".hash")) try (final InputStream hashIn = getClass().getResourceAsStream(path + ".hash"))
@@ -71,6 +74,7 @@ public abstract class RSAbstractArchiveMixin implements RSAbstractArchive
overlayOutdated = true; overlayOutdated = true;
return rsData; return rsData;
} }
}
try (final InputStream ovlIn = getClass().getResourceAsStream(path)) try (final InputStream ovlIn = getClass().getResourceAsStream(path))
{ {