PwnChickenLay

PwnChickenLay

8.6k Downloads

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

jordanwilliams1 opened this issue ยท 3 comments

commented

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());
commented

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

commented

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.

commented

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