MCreator 2020.4 Fluid Error

Started by Qwinci on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator 2020.4 Fluid Error
Wed, 07/22/2020 - 08:54 (edited)

Hello, i get this error from this code: > 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)));

https://imgur.com/a/qRaV0sz

Edit: Workspace zip file

https://mcreator.net/tracker/issue/64291

Edited by Qwinci on Wed, 07/22/2020 - 08:54
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I opened support ticket for…
Wed, 07/22/2020 - 09:49

I opened support ticket for it.