Disable zoom extender when a cache overlay fails to load

The zoom extender relies on multiple scripts to be up to date. If only one is changed, its functionality breaks badly.
This commit is contained in:
Adam
2018-08-02 18:52:06 -04:00
parent 1b2eb7eeaf
commit ca7ca3a7a0
5 changed files with 37 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ import com.google.common.io.CharStreams;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import net.runelite.api.hooks.Callbacks;
import net.runelite.api.mixins.Copy;
import net.runelite.api.mixins.Mixin;
import net.runelite.api.mixins.Replace;
@@ -116,6 +117,9 @@ public abstract class RSIndexDataBaseMixin implements RSIndexDataBase
log.warn("Mismatch in overlaid cache archive hash for {}/{}: {} != {}",
indexData.getIndex(), archiveId, replaceHash, rsHash);
Callbacks callbacks = client.getCallbacks();
callbacks.overlayLoadFailed(this, archiveId, fileId);
}
catch (IOException ex)
{