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

Config Option to edit the Material that gets used by goBrush #88

Closed
wants to merge 1 commit into from

Conversation

Fly1337
Copy link

@Fly1337 Fly1337 commented Mar 23, 2023

Overview

Fixes #87

Description

-Added the Config Option

Checklist

  • I included all information required in the sections above
  • I tested my changes and approved their functionality
  • I ensured my changes do not break other parts of the code

@@ -62,6 +64,15 @@ public void onEnable() {
}
saveDefaultConfig();
Session.initializeConfig(this.getConfig());

try {
MATERIAL = Material.valueOf(this.getConfig().getString("material").toUpperCase());

Choose a reason for hiding this comment

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

Parse direct to xMaterial. Double parsing is not a good choose

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, this will not work out well.
This causes issues for everyone updating goBrush because there is no logic to upgrade configs automatically yet, which you want to add to streamline such a functionality @Fly1337

@Fly1337 Fly1337 closed this May 19, 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.

A Config Option to choose which Material should get used by goBrush
3 participants