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
- Install Fluidlogged API (3.2.0) and Galacticraft (4.0.7, technic-ic2c variant)
- Create a new world
- Ignite a fire near any Galacticraft fluid (or wait for fire to spread naturally)
- Allow the fire block to tick
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
Describe the bug
When both Fluidlogged API and Galacticraft are installed, the game crashes with a
ClassCastExceptionwhile a fire block is ticking. The crash occurs because Fluidlogged API passes aFluidCacheobject toBlockFluidGC.isFlammable(), which expects aWorldobject.This was encountered in the Tekkit SMP modpack.
To Reproduce
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:
Additional context