-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Conversation
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.
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 { |
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.
New configuration options should be added to the paper configuration patch, not the patch consuming the config option.
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.
Do you mean I should do a patch with the config, & then another patch that will use it ?
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.
The diff in question here should live in the https://github.com/PaperMC/Paper/blob/master/patches/server/0005-Paper-config-files.patch patch.
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.
oh ok, thanks
+ public Mushroom mushroom; | ||
+ | ||
+ public class Mushroom extends ConfigurationPart { | ||
+ public int spreadLimit = 5; |
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.
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; |
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.
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]> |
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.
Are you sure this is the correct name of the author ?
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.
UTF-8 issue, i'll change
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.