From 138e8df47f117743b6386cf43bb2acb129f699a1 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Fri, 24 Dec 2021 18:25:35 +0800 Subject: fix potential bug when loading slayer --- features/slayers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features') diff --git a/features/slayers/index.js b/features/slayers/index.js index 55748ab..c09efd7 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -61,7 +61,7 @@ class Slayers extends Feature { this.registerSoopy("apiLoad", this.apiLoad) - if(this.FeatureManager.features["dataLoader"].class.lastApiData.skyblock){ + if(this.FeatureManager.features["dataLoader"] && this.FeatureManager.features["dataLoader"].class.lastApiData.skyblock){ this.apiLoad(this.FeatureManager.features["dataLoader"].class.lastApiData.skyblock, "skyblock", true, true) } -- cgit