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

Add support for bows #24

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Add support for bows #24

merged 3 commits into from
Aug 2, 2024

Conversation

Seeloewen
Copy link
Contributor

Fixes my issue opened in #23
Accidentally added bows to migration from config v1, probably shouldn't matter though. If not, I can remove it.

@Seeloewen Seeloewen mentioned this pull request Jul 23, 2024
Copy link
Member

@RappyTV RappyTV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey 👋
Sorry for the late response, I just didn't receive a notification that you opened the pr ^^
Looks good so far! You'd still need to bump the version in the build.gradle.kts though :)

@@ -55,6 +56,7 @@ private void migrateFromOne(ConfigurationVersionUpdateEvent event) {
pickaxe = config.get("pickaxePercentage").getAsInt();
axe = config.get("axePercentage").getAsInt();
shovel = config.get("shovelPercentage").getAsInt();
bow = config.get("bowPercentage").getAsInt();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be removed as it would throw an exception resulting in every other value not being migrated

Suggested change
bow = config.get("bowPercentage").getAsInt();

@RappyTV RappyTV assigned RappyTV and Seeloewen and unassigned RappyTV Aug 1, 2024
@RappyTV RappyTV added the feature New feature or request label Aug 1, 2024
@RappyTV RappyTV added this to the v1.5.0 milestone Aug 1, 2024
@RappyTV RappyTV linked an issue Aug 1, 2024 that may be closed by this pull request
@Seeloewen
Copy link
Contributor Author

Seeloewen commented Aug 1, 2024

Removed the code for the migration. What is the version in build.gradle.kts used for? Just the project version? Sorry, I'm not often working with gradle or java in general.

Edit: Figured it out myself by looking at your releases. Bumped the version to 1.4.2.

@RappyTV
Copy link
Member

RappyTV commented Aug 2, 2024

yea its the labymod addon version ^^

Copy link
Member

@RappyTV RappyTV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. thanks for the pr :D

@RappyTV RappyTV merged commit 38c354a into RappyLabyAddons:master Aug 2, 2024
1 check passed
@RappyTV
Copy link
Member

RappyTV commented Aug 2, 2024

it's released on FlintMC now. only thing left is waiting until nico approves it

@Seeloewen
Copy link
Contributor Author

Alright, great! Now is probably a good time to say thank you for this add-on, it really saved my tools a bunch of times :)

@RappyTV
Copy link
Member

RappyTV commented Aug 2, 2024

thanks! it means a lot to me 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Support bows
2 participants