Skip to content

ClassCastException when fire interacts with Galacticraft fluids #291

@AyaSapphire

Description

@AyaSapphire

Describe the bug

When both Fluidlogged API and Galacticraft are installed, the game crashes with a ClassCastException while a fire block is ticking. The crash occurs because Fluidlogged API passes a FluidCache object to BlockFluidGC.isFlammable(), which expects a World object.

This was encountered in the Tekkit SMP modpack.

To Reproduce

  1. Install Fluidlogged API (3.2.0) and Galacticraft (4.0.7, technic-ic2c variant)
  2. Create a new world
  3. Ignite a fire near any Galacticraft fluid (or wait for fire to spread naturally)
  4. Allow the fire block to tick
Image

Expected behavior

The game should not crash. Fire should behave normally around Galacticraft fluids, and the world should continue running without errors.

Logs

Full crash report: https://mclo.gs/YwdEudV

Relevant stack trace:

java.lang.ClassCastException: class git.jbredwards.fluidlogged_api.mod.common.fluid.util.FluidCache cannot be cast to class net.minecraft.world.World
    at micdoodle8.mods.galacticraft.core.blocks.BlockFluidGC.isFlammable(BlockFluidGC.java:127)
    at git.jbredwards.fluidlogged_api.mod.asm.plugins.vanilla.block.PluginBlockFire$Hooks.canCatchFire(PluginBlockFire.java:110)
    at net.minecraft.block.BlockFire.canCatchFire(BlockFire.java)
    at net.minecraft.block.BlockFire.canNeighborCatchFire(BlockFire.java:328)
    at net.minecraft.block.BlockFire.updateTick(BlockFire.java:179)

Additional context

  • Minecraft Version: 1.12.2
  • Cleanroom Version: 0.5.4-alpha
  • Fluidlogged API Version: 3.2.0
  • Galacticraft Version: 4.0.7 (technic-ic2c variant)
  • Modpack: Tekkit SMP

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as intendedfixed in devA fix is ready for the next updateincompatibilityThis issue relates to another mod

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions