-
Notifications
You must be signed in to change notification settings - Fork 546
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
Update to 1.20.5 #4186
Update to 1.20.5 #4186
Conversation
Your Pull Request was automatically labelled as: "🧹 Chores" |
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.
Also should this be something we maybe put in dough instead of SF itself?
src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Outdated
Show resolved
Hide resolved
MinecraftVersion or the versioned stuff? We have a MinecraftVersion in dough, just not with the actual MC vers. The versioned classes, maybe but I don't intend for them to be around forever or widely used. |
I was meaning the versioned stuff but yeah if they're temp then it's probably fine |
Tests are due to mix of 1.20.6 and 1.20.4, will wait for MockBukkit This looks alright to me on 1.20.4, not tested 1.20.6 yet since Paper is broken |
src/main/java/io/github/thebusybiscuit/slimefun4/utils/compatibility/VersionedEnchantment.java
Outdated
Show resolved
Hide resolved
PR is merged, time to have some progress? |
A billion tests have failed |
Java version issue by the look of the errors |
Ah I saw an open PR for that on mockbukkit |
I think we need to bump Java up to 21 for tests since that's what mockbukkits Java is now... Could be wrong tho |
src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java
Outdated
Show resolved
Hide resolved
Okay so tests now compiled on Java 21 (main sources still compile agains 16) and the mockbukkit version. I've also fixed the merge conflict so now all thats left for the tests to pass is dough... not entirely sure how to fix this. The ItemUtils class doesn't compile on 1.20.5+ due to the enchantments constants changes. So unless dough adopts some sort of Versioned enchantment, we'd have to make dough support 1.20.5+ exclusively for this to work. |
the e2e tester also needs to be updated otherwise it will check against 1.21 |
putting the link to MockBukkit's basePotionType PR here: MockBukkit/MockBukkit#1059 |
the PR targets 1.21 though, we won't be able to use it until then... |
We should probably temporarily disable the tests that use the base potion type. When we work on 1.21, we re-enable and fix those tests. |
We would have to disable the unit test for 1.20.5 and 1.20.6 |
…bility/VersionedEnchantment.java Co-authored-by: J3fftw <[email protected]>
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/4186/00544df8
|
Testing is done: https://discord.com/channels/565557184348422174/565570276038017044/1282538803940163584 Planned merge date: 9/10th Sept |
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.
LGTM
src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java
Show resolved
Hide resolved
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.
LGTM after the points from YB have been addressed
src/test/java/io/github/thebusybiscuit/slimefun4/core/services/localization/TestColorCodes.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Outdated
Show resolved
Hide resolved
* fix: fix isBefore, also added unit tests * chore: comments * chore: simplify * chore: use == for enum comparison * chore: retrigger ci * chore(ci): e2e on more versions
…/localization/TestColorCodes.java Co-authored-by: JustAHuman-xD <[email protected]>
…Version.java Co-authored-by: ybw0014 <[email protected]>
Quality Gate passedIssues Measures |
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.
Everything looks good, should add that it's been a while since I've done mc related coding
@@ -31,6 +33,8 @@ public final class FireworkUtils { | |||
Color.RED, Color.SILVER, Color.TEAL, Color.WHITE, Color.YELLOW | |||
}; | |||
// @formatter:on | |||
|
|||
private static final EntityType firework = VersionedEntityType.FIREWORK; |
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.
Not sure why you make it a static variable when its only used once
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.
not sure either but can be cleaned up later
<dependency> | ||
<groupId>io.papermc.paper</groupId> | ||
<artifactId>paper-api</artifactId> | ||
<version>1.20.4-R0.1-20240205.114523-90</version> | ||
<version>1.20.6-R0.1-SNAPSHOT</version> |
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.
-SNAPSHOT is still latest version?
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.
yep that's latest -- probably worth pinning again once we're in .21
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.
LGTM as far as I can see as long as it's been tested too!
Description
Relatively easy update just a bunch of enum changes for which we can just provide a compatible API for.
Proposed changes
Created a bunch of VersionedX classes, I don't really like this but it works for now. Ideally, we build a proper mapping system but for now, I think this is fine. These names have been wrong a long time, I don't see them changing much from here.
Related Issues (if applicable)
N/A
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null valuesStill to do