mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 18:24:06 +00:00
Load built-in modules only from the pack's own jar so an Iris update never changes a pack's modules
Iris no longer loads a bundled iris-builtins.jar with every pack. It carries the jar only to copy into new packs (/iris std create), so a pack and a world's copy of it keep the module versions they were made with. Built-in modules report Iris's version instead of "built-in", and /iris std modules lists every module with version, id and jar and takes the pack positionally.
This commit is contained in:
1 parent
620d59ad7a
commit
e7d1ed24cb
54 files changed
+213
-341
No files matched your search
+2
-2
@@ -314,8 +314,8 @@ List<String> dependencyBuildMetadata = [
|
||||
]
|
||||
|
||||
// The built-in modules as a pack module jar, iris-builtins.jar, which IrisModule builds from its classes and checks as a pack
|
||||
// load would. Iris bundles it into the plugin (IrisModuleHost loads it with every pack) after checking it once more against
|
||||
// what its own Bukkit jar leaves out of VolmLib, which only Iris knows.
|
||||
// load would. Iris carries it in the plugin, never loading it itself: PackBuiltIns copies it into new packs, which load their
|
||||
// own copy. It is checked once more against what Iris's own Bukkit jar leaves out of VolmLib, which only Iris knows.
|
||||
String builtinModulesJarName = 'iris-builtins.jar'
|
||||
// The packages pack modules may use besides the IrisApi; IrisModuleHost.EXPOSED_PACKAGES lists the same.
|
||||
List<String> builtinExposedPackages = ['art.arcane.iris.builtin', 'art.arcane.iris.core.structure.authoring', 'art.arcane.volmlib',
|
||||
|
||||
Reference in new issue
Block a user