Get Enchantment Level of Enchantment [enchantment] returns lambda expresion

Started by rDonutowiec on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 22:27, 12. Feb 2024
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;

If you are not using custom…
Sat, 06/03/2023 - 14:04

If you are not using custom code, then please open a bug report on github with example workspace. Thanks!