-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowed the GameProvider to provide the namespace #428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with most of these changes - but with 1 disagreement, and 4 nitpicks. (tryGetGameProvider()
should only be used over getGameProvider()
if you can do something with a null return value, and it's invoked early enough to be null, but since you just use it directly there's no reason not to use getGameProvider()
instead)
src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java
Outdated
Show resolved
Hide resolved
src/main/java/org/quiltmc/loader/impl/entrypoint/GamePatch.java
Outdated
Show resolved
Hide resolved
src/main/java/org/quiltmc/loader/impl/launch/common/MappingConfiguration.java
Outdated
Show resolved
Hide resolved
minecraft/src/main/java/org/quiltmc/loader/impl/game/minecraft/patch/TinyFDPatch.java
Outdated
Show resolved
Hide resolved
@AlexIIL not sure if I should have notified you around 2 days ago when I made the commit, but those suggestions have been implemented in the most recent commit. Edit: Turns out there is a request for re-review button on GH that I missed, sry about that. |
* Add missing changelog entry. * Bump for 0.25.0 release. * Publish dependencies as seperate module (#418) * Dependency publishing and use toolchains * Fix up tests and exclude specific included dependencies * Add foojay for toolchains to work * Add a system property to disable DelegatingUrlStreamHandlerFactory. (#424) * Fix "2.x" not appending an empty build version to the resulting predicate. (#425) This used to turn "2.x" or "=2.x" into "^2-", however a while ago this accidently got changed to "^2". Honestly, I'm unsure which way is correct. However this was changed accidently during our Version.Sementic switching to non-null build & pre-release, so it's been changed back. * Add missing license * Change indentation in McVersionLookup to match upstream * 24w14potato support forked from 24w12a * 24w14potato support (part 2) * Update Mixin (#919) * Update Mixin * Update Mixin * 0.26.0 changelog, and bump for beta release 0.26.0-beta.1 * bump qconf (#423) * Update changelog * Link * Fix Fabric mod author and contributor being duplicated (#427) * Fix mod contributors being reordered when read (#426) * Fix regression which moved the global cache to the wrong location (#429) * Bump version * Allowed the GameProvider to provide the namespace (#428) * Allowed the GameProvider to provide the namespace * Removed the deprivation warning on the MappingConfiguration * Removed process functions where the namespace isn't provided from being deprecated in the GamePatch * Fixup of commit f71eda1a with AlexIIL's suggestions * Allowed for no namespace to be provided when locating entrypoints * Release beta * Fix knot class loading allowlist not working (#430) * Bump version * Add a system property to disable unsupported mod warnings (#434) The system property is `loader.ignore_unsupported_mods` - set this to true with `-Dloader.ignore_unsupported_mods=true` to ignore all unsupported mods. This is a straightforward solution to #433. * Two changes to dates in the report generator: - Include the zone offset (raw time number like +0100) in the actual crash report file. This should help when assisting people in other timezones - as we can figure out if a crash report was generated just now, or is an older one. - Change from CLOCK_HOUR_OF_DAY to HOUR_OF_DAY. This means we'll get digital time at 15 minutes past midnight (00:15) rather than analog time (24:15) * Added support for 1.21 * Provide fabric loader 0.15.11 * Bump for beta. (Just before releasing a proper stable -_- ) * Update changelog * Bump for 0.26.0 release! * Fixed crash reports being printed to system out, rather than the log. (This is a problem for launchers which don't replay sysout, like Modrinth) * Fixed the gui system closing the whole game if the forked gui process encountered an error, rather than returning the error to the original process. * Two bug fixes: 1: Implement additional reflections patch system for shaded versions of the reflections library. Currently this only targets the one used by kubejs-offline. (TODO) Add system property support for additional packages. 2: Fix gui icons being sent too early, causing crashes in the gui server. Also added a new system property to print all gui packets. * Add missing license headers. * Change plugin classes to be made available after plugins have been loaded. * Delete. * Update licenses. --------- Co-authored-by: AlexIIL <[email protected]> Co-authored-by: Luke Bemish <[email protected]> Co-authored-by: modmuss50 <[email protected]> Co-authored-by: ix0rai <[email protected]> Co-authored-by: Lilly Rose Berner <[email protected]> Co-authored-by: glitch <[email protected]> Co-authored-by: coolGi <[email protected]> Co-authored-by: Vasiliy <[email protected]> Co-authored-by: WinPlay02 <[email protected]>
This PR adds a new optional function to the GameProvider called
getNamespace
to allow it to provide the namespace of the current session (which should be either be "named" or "intermediary").It also exposes the namespace to the GamePatch allowing it to be passed as an argument to it.
This PR also removes these lines in TinyFDPatch as (to the best of my knowledge), it will always return false (launcher.getMappingConfiguration().getTargetNamespace()
andQuiltLoader.getMappingResolver().getNamespaces()
are always the same), unless something went wrong (where the namespace is called something other than "named" or "intermediary").Reverted this change as it will be needed for the planned
hashed
mappings/namespace (#428 (comment))