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

Waterlogged blocks not compile. #463

Closed
3 tasks done
waterphage opened this issue Sep 18, 2023 · 0 comments
Closed
3 tasks done

Waterlogged blocks not compile. #463

waterphage opened this issue Sep 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@waterphage
Copy link

waterphage commented Sep 18, 2023

Issue description

Configure project :
Fabric Loom: 1.2.7
Task :compileJava
C:\Users\1\MCreatorWorkspaces\fbased\src\main\java\net\mcreator\fbased\block\TestBlock.java:67: error: cannot find symbol
boolean flag = context.level().getFluidState(context.getClickedPos()).getType() == Fluids.WATER;
^
symbol: method level()
location: variable context of type BlockPlaceContext
1 error
Task :compileJava FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED
Task completed in 6 seconds

How to reproduce this issue?

Just set any block to waterloggable.

Operating system

Windows

Details

2023.3
1.9.9

Example workspace

bug_water.zip

Logs

No response

Issue tracker rule checks (please read carefully)

@waterphage waterphage added the bug Something isn't working label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant