2024.4 error: local variables referenced from a lambda expression must be final or effectively final

Started by usshshsushii on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2024.4 error: local variables referenced from a lambda expression must be final or effectively final
Thu, 04/09/2026 - 08:47 (edited)

Executing Gradle task: runClient
Build info: MCreator 2024.4.52410, forge-1.20.1, 64-bit, 15790 MB, Windows 10, JVM 21.0.4, JAVA_HOME: D:\MCreator\jdk, started on: 2026-04-09-10:12:13
Loaded APIs: geckolib

> Task :compileJava FAILED
C:\Users\alex\MCreatorWorkspaces\wpgit\src\main\java\net\onesevenfoursixsushi\whitepoint\procedures\CcccChaseOnEntityTickProcedure.java:39: error: local variables referenced from a lambda expression must be final or effectively final capability.syncPlayerVariables(playerfound);
^
C:\Users\alex\MCreatorWorkspaces\wpgit\src\main\java\net\onesevenfoursixsushi\whitepoint\procedures\CcccChaseOnEntityTickProcedure.java:46: error: local variables referenced from a lambda expression must be final or effectively final capability.syncPlayerVariables(playerfound);
^
C:\Users\alex\MCreatorWorkspaces\wpgit\src\main\java\net\onesevenfoursixsushi\whitepoint\procedures\CcccChaseOnEntityTickProcedure.java:59: error: local variables referenced from a lambda expression must be final or effectively final capability.syncPlayerVariables(playerfound);
^
3 errors
FAILURE: Build failed with an exception.

plugins: geckolib, blockstates, configuration files, snails plugin, item tooltips and world renderer

it happened right after i added this (screenshot) or this (screenshot)

 

Edited by usshshsushii on Thu, 04/09/2026 - 08:47