Get Enchantment Level of Enchantment [enchantment] returns lambda expresion

Started by rDonutowiec on

Topic category: Troubleshooting, bugs, and solutions

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get Enchantment Level of Enchantment [enchantment] returns lambda expresion

i have experienced some compilation issues:

hhffigj is type double.

 

C:\Users\Dell\MCreatorWorkspaces\jakissemod\src\main\java\net\mcreator\jakissemod\procedures\HealingStuffRightClickedProcedure.java:40: error: local variables referenced from a lambda expression must be final or effectively final 


hhffigj = EnchantmentHelper.getItemEnchantmentLevel(JsmModEnchantments.HEALING.get(), itemstackiterator) + 0;