AgriCraft

AgriCraft

30M Downloads

Agricraft Tank + Thermal Foundation Fluiduct crash

Black0305 opened this issue ยท 1 comments

commented

Quick description

Game crashes when you break a filled Fluiduct from Thermal Foundation, which is attached to a AgriCraft tank

Mods and versions used

  • Minecraft: 1.12.2
  • AgriCraft: 1.12.0-a6
  • InfinityLib: 1.12.0
  • Thermal Foundation / Dynamics both latest version

Steps to replicate the issue

  1. Place Agricraft Tank, fill it with water and attach two Fluiducts with a servo to extract water (Fluiduct must be filled)
  2. Break the second Fluiduct
  3. Crash

Expectations and explanations

Shouldnt crash

Your environment

  • What kind of server:
    • Singleplayer
    • Multiplayer
  • Game Modes:
    • Survival
    • Creative
  • Save File:
    • Brand new save
    • Only an existing save

Links to crash logs, stack traces, etc

Screenshots (or videos)

agricrash

commented

Looks like the IFluidHandler interface doesn't work the way I would have expected it to, in that it seems to allow draining negative amounts, which makes no sense. I'll have to remove the precondition check so it doesn't crash the game when the interface is abused.