remove enabled() check in getMod() method (#7625)

This commit is contained in:
Даркнесс#3729
2022-09-25 20:26:17 +03:00
committed by GitHub
parent 52759faa5d
commit 04a75d14b1

View File

@ -84,7 +84,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);
return mods.find(m -> m.main != null && m.main.getClass() == type);
}
/** Imports an external mod file. Folders are not supported here. */