2
0
Эх сурвалжийг харах

fixed adding group in table break script type checking

Nicolas Cannasse 4 жил өмнө
parent
commit
bd3e54d187

+ 6 - 2
hide/comp/ScriptEditor.hx

@@ -58,8 +58,12 @@ class ScriptChecker {
 			var config = config.get("script.api");
 			if( config == null ) continue;
 			var api = (config : GlobalsDef).get(path);
-			if( api == null ) continue;
-			apis.unshift(api);
+			if( api == null ) {
+				path = ~/\[group=[^\]]+?\]/g.replace(path,"");
+				api = (config : GlobalsDef).get(path);
+			}
+			if( api != null )
+				apis.unshift(api);
 		}
 
 		var cdbPack : String = config.get("script.cdbPackage");