MCreator 2020.4 Fluid procedure error

Published by Qwinci on Wed, 07/22/2020 - 08:45
Upvotes: 3
Issue description

Hello, this error appears from trying to regenerate code and build. Element where crash happens is WaterTankClick procedure and inside it if statements.

Log:

Executing
    Gradle task: build

Build
    info: MCreator 2020.4.28114 EAP (28114), forge-1.15.2, 64-bit, 8191 MB,
    Windows 10, JVM 1.8.0_252, JAVA_HOME:
    C:\Users\laati\Documents\Ohjelmat\MCreator Snapshot\jdk

>
    Configure project :

New
    Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1

>
    Task :compileJava

C:\Users\laati\MCreatorWorkspaces\pumped_storage\src\main\java\net\qwinci\pumpedstorage\procedures\WaterTankClickProcedure.java:120:
    error: incompatible types: FluidStack cannot be converted to int
 
                           .ifPresent(capability ->
    _retval.set(capability.drain(amount, IFluidHandler.FluidAction.SIMULATE)));

 
                                                                               
     ^

C:\Users\laati\MCreatorWorkspaces\pumped_storage\src\main\java\net\qwinci\pumpedstorage\procedures\WaterTankClickProcedure.java:147:
    error: incompatible types: FluidStack cannot be converted to int
 
                           .ifPresent(capability ->
    _retval.set(capability.drain(amount, IFluidHandler.FluidAction.SIMULATE)));

 
                                                                               
     ^

Note:
    Some messages have been simplified; recompile with -Xdiags:verbose to get
    full output

2
    errors

>
    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.

*
    Get more help at https://help.gradle.org

Deprecated
    Gradle features were used in this build, making it incompatible with
    Gradle 5.0.

Use
    '--warning-mode all' to show the individual deprecation warnings.

See
    https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…

BUILD
    FAILED in 52s

1
    actionable task: 1 executed

BUILD
    FAILED

Task
    completed in 55934 milliseconds

Attachment Size
Workspace152.69 KB 152.69 KB

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.