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

Fixed multiple enchantings on items #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed multiple enchantings on items #108

wants to merge 1 commit into from

Conversation

Postremus
Copy link

Previosly enchantings and the item amount was seperated by a ","
This causes the ItemUtil.getComamndItem() method to only get one of the enchantments.
I changed the amount to be seperated by a "#"

Previosly enchantings and the item amount was seperated by a ","
I changed the amount to be seperated by a "#"
@@ -100,7 +100,7 @@ public synchronized void load() {
continue;
}

String[] parts = line.split(",");
String[] parts = line.split("#");
ItemStack item = ItemUtil.getItem(parts[0].replace(" ", ""));
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is the best character to use at the very least. # is a comment character if I recall correctly. Also, this breaks backwards compatibility with various kits, does it not?

I'm pretty sure just from looking at the code here, kits follow their own syntax, so I think the real issues is enchants were never properly implemented for kits.

EDIT: I take that back, it's setting item quantity, and that seems to be all.

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.

None yet

2 participants