mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
Better handling of internal addon
This commit is contained in:
@@ -108,7 +108,7 @@ public abstract class AbstractPlatform implements Platform {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
protected void load() {
|
||||
protected InternalAddon load() {
|
||||
if(LOADED.get()) {
|
||||
throw new IllegalStateException(
|
||||
"Someone tried to initialize Terra, but Terra has already initialized. This is most likely due to a broken platform " +
|
||||
@@ -159,6 +159,8 @@ public abstract class AbstractPlatform implements Platform {
|
||||
|
||||
logger.info("Terra addons successfully loaded.");
|
||||
logger.info("Finished initialization.");
|
||||
|
||||
return internalAddon;
|
||||
}
|
||||
|
||||
protected InternalAddon loadAddons() {
|
||||
|
||||
Reference in New Issue
Block a user