Create: The Factory Must Grow

Create: The Factory Must Grow

4M Downloads

Crash when using Screwdriver on Create pipes

DracoHero opened this issue ยท 0 comments

commented

Context

The game crashes when using the ScrewdriverItem from TFMG on a Create pipe (FluidPipeBlockEntity).
The crash happens because the screwdriver tries to cast a Create pipe to TFMGPipeBlockEntity without checking the block type.

Crash Log (relevant part):

java.lang.ClassCastException: class com.simibubi.create.content.fluids.pipes.FluidPipeBlockEntity 
cannot be cast to class com.drmangotea.tfmg.content.decoration.pipes.TFMGPipeBlockEntity
    at com.drmangotea.tfmg.content.items.ScrewdriverItem.useOn(ScrewdriverItem.java:34)

Versions:

  • Minecraft: 1.21.1
  • Create: 6.0.6
  • TFMG: 1.0.2f
  • Loader: NeoForge

Steps to reproduce:

  1. Install Create and TFMG.
  2. Place a Create fluid pipe.
  3. Use the TFMG Screwdriver on the pipe.
  4. The game crashes immediately.

Expected behavior:
The ScrewdriverItem should properly check the block type (e.g., with instanceof) before casting.
If the block is not a TFMG pipe, it should ignore it or handle it gracefully instead of crashing.

Crash Report

https://mclo.gs/mtZs6qz