-
Notifications
You must be signed in to change notification settings - Fork 549
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
Fix contributor head being pullable #4072
Conversation
Your Pull Request was automatically labelled as: "✨ Fix" |
Server owners hitting this should bust the cache after updating Slimefun. File is located at: Upon testing we saw only a few heads loading per start, not sure why or what's happening there. Once the cache is filled up though, it'll be fine. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/4072/be74ed09
|
Why do we need authlib as a dependency |
Java compilation fails otherwise. Since we now do getProfile and get the CustomGameProfile which inherits from GameProfile. |
Description
In
GitHubTask
we're doingOptional<String> skin = Optional.of(future.get().toString());
wherefuture.get()
returnsPlayerSkin
. However,PlayerSkin
does not have atoString()
function and therefore this was resulting in the normal Object#toString meaningskin
was likeio.github.thebusybiscuit.slimefun4.libraries.dough.skins.PlayerSkin@abcdef123
instead of the base64 texture.Proposed changes
This PR updates dough and a small change in our contributor code to fix #4071
Unfortunately, this change cannot be easily unit-tested as the whole
GitHubTask
is private and changing that wouldn't make sense. We could run the Runnable but we shouldn't, it'll do a bunch of network requests and generally just be bad practice to test a single function.Dough PR for this change: Slimefun/dough#240
Related Issues (if applicable)
Fixes #4071
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null valuesMerge checklist