mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 16:24:42 +00:00
use type inference instead of conditional type
This commit is contained in:
parent
b50364edcf
commit
37517e1e16
|
@ -182,7 +182,7 @@ class PolymodHandler
|
|||
}
|
||||
#end
|
||||
|
||||
public static function getAllMods():Array<#if polymod ModMetadata #else Dynamic #end> // this is shitty conditional but ModMetadata isn't imported on HTML5! And I'm too lazy to actually do it properly!
|
||||
public static function getAllMods()
|
||||
{
|
||||
#if polymod
|
||||
trace('Scanning the mods folder...');
|
||||
|
@ -190,7 +190,7 @@ class PolymodHandler
|
|||
trace('Found ${modMetadata.length} mods when scanning.');
|
||||
return modMetadata;
|
||||
#else
|
||||
return [];
|
||||
return new Array<Dynamic>();
|
||||
#end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue