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

Increase vanilla mushroom spread limit #9591

Closed
wants to merge 1 commit into from
Closed

Increase vanilla mushroom spread limit #9591

wants to merge 1 commit into from

Conversation

GrayR0ot
Copy link

@GrayR0ot GrayR0ot commented Aug 9, 2023

This update introduces a mushroom configuration to the Paper world, providing users with the ability to bypass the standard vanilla spread limit. This customization allows users to exert more control over mushroom spreading, potentially leading to increased mushroom growth within the designated area.

@GrayR0ot GrayR0ot requested a review from a team as a code owner August 9, 2023 12:09
Copy link
Contributor

@lynxplay lynxplay left a comment

Choose a reason for hiding this comment

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

Welcome to paper 🎉
Thank you for your first PR! A few notes on the PR in general, tho generally I like the idea.

+
+ public Mushroom mushroom;
+
+ public class Mushroom extends ConfigurationPart {
Copy link
Contributor

Choose a reason for hiding this comment

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

New configuration options should be added to the paper configuration patch, not the patch consuming the config option.

Copy link
Author

Choose a reason for hiding this comment

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

Do you mean I should do a patch with the config, & then another patch that will use it ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

oh ok, thanks

+ public Mushroom mushroom;
+
+ public class Mushroom extends ConfigurationPart {
+ public int spreadLimit = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think IntOr.Default would fit a lot better here.

+ if(mushroomSpreadLimit == -1) {
+ mushroomSpreadLimit = 9 * 9 * 3; // Paper - 9x9x3 Vanilla SHAPE sum
+ }
+ int i = mushroomSpreadLimit;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the definition of i moved below the iterator and flag creation ? This just seems like added diff for no reason.

@@ -0,0 +1,46 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9o=20Moriceau?= <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this is the correct name of the author ?

Copy link
Author

Choose a reason for hiding this comment

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

UTF-8 issue, i'll change

@GrayR0ot GrayR0ot closed this by deleting the head repository Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants