Move GameVersion and its tests to the api module and add prefix matching (42, 42.21, 42.21.0). Add the abstract Mod base class with ModContext, bound through a ScopedValue while the mod is constructed. Add mod discovery, mod.toml parsing (night-config TOML), validation of API and game versions and dependencies, dependency ordering, and per-mod class loaders in core.mods. Add Forge to load mods and call their lifecycle methods from ServerHooks, and ConsoleLogger for log output. Add tests for versions, descriptors, discovery, resolution, and loading.
This commit is contained in:
1 parent
837367047c
commit
df4d58a279
46 files changed
+1846
-131
No files matched your search
+3
-2
@@ -76,9 +76,10 @@ RUN apt-get update \
|
||||
&& apt-get install --yes --no-install-recommends ca-certificates sqlite3 \
|
||||
&& rm --recursive --force /var/lib/apt/lists/*
|
||||
|
||||
# /forge/mods holds Java mods (one folder per mod); usually a mounted directory.
|
||||
RUN useradd --create-home --uid 1000 pz \
|
||||
&& mkdir /data \
|
||||
&& chown pz:pz /data
|
||||
&& mkdir --parents /data /forge/mods \
|
||||
&& chown --recursive pz:pz /data /forge
|
||||
|
||||
COPY --from=server /server /opt/pz
|
||||
COPY --from=build /src/patcher/build/server/projectzomboid.jar /opt/pz/java/projectzomboid.jar
|
||||
|
||||
Reference in new issue
Block a user