Skip to content
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

chore: various changes to 1.20.5 branch #4240

Merged

Conversation

ybw0014
Copy link
Contributor

@ybw0014 ybw0014 commented Sep 11, 2024

Description

  • Fix MinecraftVersion#isBefore(major, minor).
  • Use == to compare base potion type, as it is enum.
  • Added unit tests.
  • Added more version to e2e testing workflow (1.20.4, 1.20.6), disabled the latest (1.21.1) for now.

Waiting for Boomer to test with a few addons.

Proposed changes

Related Issues (if applicable)

Resolves issues in #4186.

Checklist

  • I have fully tested the proposed changes and promise that they will not break everything into chaos.
  • I have also tested the proposed changes in combination with various popular addons and can confirm my changes do not break them.
  • I have made sure that the proposed changes do not break compatibility across the supported Minecraft versions (1.16.* - 1.20.*).
  • I followed the existing code standards and didn't mess up the formatting.
  • I did my best to add documentation to any public classes or methods I added.
  • I have added Nonnull and Nullable annotations to my methods to indicate their behaviour for null values
  • I added sufficient Unit Tests to cover my code.

@ybw0014 ybw0014 requested a review from a team as a code owner September 11, 2024 03:56
@github-actions github-actions bot added the 🧹 Chores Refactoring / Cleanup. label Sep 11, 2024
Copy link
Contributor

Your Pull Request was automatically labelled as: "🧹 Chores"
Thank you for contributing to this project! ❤️

Copy link
Contributor

github-actions bot commented Sep 11, 2024

Slimefun preview build

A Slimefun preview build is available for testing!
Commit: 9b57ade

https://preview-builds.walshy.dev/download/Slimefun/4240/9b57adea

Note: This is not a supported build and is only here for the purposes of testing.
Do not run this on a live server and do not report bugs anywhere but this PR!

@ybw0014 ybw0014 requested a review from a team as a code owner September 11, 2024 23:02
@ybw0014 ybw0014 changed the title fix: fix MinecraftVersion#isBefore, also added unit tests chore: various changes to 1.20.5 branch Sep 11, 2024
@WalshyDev WalshyDev merged commit 283a896 into Slimefun:chore/update-to-1-20-5 Sep 11, 2024
12 checks passed
@Boomer-1 Boomer-1 added the Build tested Used to indicate the PR preview build has been tested by one of the team label Sep 11, 2024
@ybw0014 ybw0014 deleted the chore/update-to-1-20-5 branch September 12, 2024 04:08
WalshyDev added a commit that referenced this pull request Sep 13, 2024
**This build should be considered experimental for now**

* Update to 1.20.5
* Keep old isMinecraftVersion func
* Update src/main/java/io/github/thebusybiscuit/slimefun4/utils/compatibility/VersionedEnchantment.java
Co-authored-by: J3fftw <[email protected]>

* Update mockbukkit
* Update Junit and maven plugin versions, update mockbukkit to latest for 1.20.6
* Refactor AbstractLocateRegexCheck to detect and return null if the locale file only contains the null delimiter
* Refactor to use a permission check in the TestGuideCommand
* Fix TestBiomeMapCompatibility failing due to JsonUtils neeeding Slimefun to be loaded, add biome json for 1.20.5+
* Refactor versioned classes to use the Registry api
* Mark the paper-api dependency in the provided scope
* Check if getBasePotionType can be used before using it
* Revert "Refactor versioned classes to use the Registry api"
This reverts commit b529c34.

* Refactor VersionedEntityType and VersionedEnchantment to use the registry api
* Mark the paper-api dependency in the test scope, update comment
* Refactor MinecraftVersion to include a range of minor patches which a MinecraftVersion targets
* Make tests pass and update to dough pr
* Update CI
* Update dough and move fireworkutils to registry
* Update dough to HEAD
* chore: various changes to 1.20.5 branch (#4240)
* 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
* Update src/test/java/io/github/thebusybiscuit/slimefun4/core/services/localization/TestColorCodes.java

Co-authored-by: JustAHuman-xD <[email protected]>

* Update src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Co-authored-by: ybw0014 <[email protected]>

---------

Co-authored-by: J3fftw <[email protected]>
Co-authored-by: Andrew Wong <[email protected]>
Co-authored-by: ybw0014 <[email protected]>
Co-authored-by: JustAHuman-xD <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build tested Used to indicate the PR preview build has been tested by one of the team 🧹 Chores Refactoring / Cleanup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants