ModLoader requires a rewrite
This commit is contained in:
parent
825d87d022
commit
9c06c47ffc
|
@ -29,4 +29,10 @@
|
||||||
* The stage manager should be relatively low-overhead and allow multiple
|
* The stage manager should be relatively low-overhead and allow multiple
|
||||||
instances
|
instances
|
||||||
* Allow stages to be inherited from, creating a stack-like structure
|
* Allow stages to be inherited from, creating a stack-like structure
|
||||||
|
* The initial release of `[PlutoCommandParser]`
|
||||||
|
|
||||||
|
|
||||||
|
## Features targeted for 20.2.0.0-alpha.3
|
||||||
|
* `[PlutoLib]` Completely redo the ModLoader system
|
||||||
|
* The current implementation is a result of 5 years of feature creep
|
||||||
|
* Large scale API changes
|
|
@ -52,13 +52,10 @@ public class ModLoaderCore
|
||||||
var registeredMod = loadBuffer.stream().filter(presentMod -> presentMod.getMainClass().equals(modClass)).findAny();
|
var registeredMod = loadBuffer.stream().filter(presentMod -> presentMod.getMainClass().equals(modClass)).findAny();
|
||||||
|
|
||||||
if (registeredMod.isPresent())
|
if (registeredMod.isPresent())
|
||||||
{
|
|
||||||
if (modDataRoot != null)
|
|
||||||
{
|
{
|
||||||
var mod = registeredMod.get();
|
var mod = registeredMod.get();
|
||||||
|
|
||||||
mod.setRootDataFolder(modDataRoot);
|
mod.setRootDataFolder(modDataRoot);
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue