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

Missing semicolon cuaisng lore/name not to dispaly on spawn eggs. #3

Open
jordanwilliams1 opened this issue Apr 10, 2019 · 3 comments
Assignees

Comments

@jordanwilliams1
Copy link

jordanwilliams1 commented Apr 10, 2019

Line 208 in PwnChickenLayItemSpawnListener missing semicolon causing lore/name to be put on some items. Such as my rabbit spawn egg (no enchants).

		if(getSpecial.hasItemMeta());
@msudol msudol self-assigned this Apr 11, 2019
@msudol
Copy link
Member

msudol commented Apr 11, 2019

That's not the issue, that line is an IF statement, a semicolon does not belong there. The issue is probably line 202.

specialEnchants.put(Enchantment.getByName(key), (Integer) getSpecialEnchants.get(key));

the getByName method is deprecated.

@jordanwilliams1
Copy link
Author

O Right, That's a bit weird of how what I did fixed it lol.

@msudol
Copy link
Member

msudol commented Dec 31, 2019

This doesn't seem to be causing an issue - I've left in the deprecated method and lore seems to be displaying just fine.. perhaps a character encoding issue in the config.yml

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

No branches or pull requests

2 participants