Don't check overlay hash for overlays that didn't exist before (#2136)
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user