mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-11-28 08:54:15 +00:00
feat: finish Wyck port for Paper 26.3
This commit is contained in:
1 parent
12a5c8b1f5
commit
ad1d487032
32 files changed
+504
-722
No files matched your search
@@ -89,6 +89,11 @@ public abstract class AbstractPlatform implements Platform {
|
||||
|
||||
private static final MutableBoolean LOADED = new MutableBoolean(false);
|
||||
private static final String moonrise = "Moonrise";
|
||||
private static final String PACK_LOAD_FAILURE_QUOTE = """
|
||||
> I felt a great disturbance in the JVM, as if millions of plugins suddenly cried out in stack traces and were suddenly silenced.
|
||||
> I fear something terrible has happened.
|
||||
> - Astrash
|
||||
""".strip();
|
||||
private final EventManager eventManager = new EventManagerImpl();
|
||||
private final ConfigRegistry configRegistry = new ConfigRegistry();
|
||||
private final MetaConfigRegistry metaConfigRegistry = new MetaConfigRegistry();
|
||||
@@ -215,6 +220,7 @@ public abstract class AbstractPlatform implements Platform {
|
||||
return false;
|
||||
} catch(PackLoadFailuresException e) {
|
||||
e.getExceptions().forEach(ex -> logger.error("Failed to load config pack", ex));
|
||||
logger.error(PACK_LOAD_FAILURE_QUOTE);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -231,6 +237,7 @@ public abstract class AbstractPlatform implements Platform {
|
||||
return false;
|
||||
} catch(PackLoadFailuresException e) {
|
||||
e.getExceptions().forEach(ex -> logger.error("Failed to meta load config pack", ex));
|
||||
logger.error(PACK_LOAD_FAILURE_QUOTE);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> implements Exte
|
||||
|
||||
@Override
|
||||
public boolean validatePathIsMember(Path path) {
|
||||
return Files.isDirectory(path)|| path.getFileName().endsWith(".zip");
|
||||
return Files.isDirectory(path)|| path.getFileName().toString().endsWith(".zip");
|
||||
}
|
||||
|
||||
public static class PackLoadFailuresException extends Exception {
|
||||
|
||||
+1
-1
@@ -68,6 +68,6 @@ public class MetaConfigRegistry extends OpenRegistryImpl<MetaPack> implements Ex
|
||||
|
||||
@Override
|
||||
public boolean validatePathIsMember(Path path) {
|
||||
return Files.isDirectory(path) || path.getFileName().endsWith(".zip");
|
||||
return Files.isDirectory(path) || path.getFileName().toString().endsWith(".zip");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user