Codegen for an inheritance tree

This commit is contained in:
Anuken
2020-06-26 11:58:35 -04:00
parent 96f41b0cf3
commit eabc5c15c7
13 changed files with 150 additions and 48 deletions

View File

@@ -69,7 +69,7 @@ public class Mods implements Loadable{
/** @return the loaded mod found by class, or null if not found. */
public @Nullable LoadedMod getMod(Class<? extends Mod> type){
return mods.find(m -> m.enabled() && m.main != null && m.main.getClass() == type);//loaded.find(l -> l.mod != null && l.mod.getClass() == type);
return mods.find(m -> m.enabled() && m.main != null && m.main.getClass() == type);
}
/** Imports an external mod file.*/