Made variable name in for loop more descriptive
This commit is contained in:
parent
94d5b609ff
commit
d8ad4495d2
@ -21,7 +21,7 @@ import com.redstoner.modules.Module;
|
|||||||
/** The module loader, mother of all modules. Responsible for loading and taking care of all modules.
|
/** The module loader, mother of all modules. Responsible for loading and taking care of all modules.
|
||||||
*
|
*
|
||||||
* @author Pepich */
|
* @author Pepich */
|
||||||
@Version(major = 1, minor = 3, revision = 0, compatible = -1)
|
@Version(major = 1, minor = 3, revision = 1, compatible = -1)
|
||||||
public final class ModuleLoader implements CoreModule
|
public final class ModuleLoader implements CoreModule
|
||||||
{
|
{
|
||||||
private static ModuleLoader instance;
|
private static ModuleLoader instance;
|
||||||
@ -172,10 +172,12 @@ public final class ModuleLoader implements CoreModule
|
|||||||
|
|
||||||
public static void disableModules()
|
public static void disableModules()
|
||||||
{
|
{
|
||||||
for (Module m : modules)
|
for (Module module : modules)
|
||||||
{
|
{
|
||||||
if (m.enabled())
|
if (module.enabled())
|
||||||
m.onDisable();
|
{
|
||||||
|
module.onDisable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user