Mekanism Additions

Mekanism Additions

24M Downloads

Cardboard Box Crashed Game When Picking Up Oritech Machine

SatanicGodz opened this issue ยท 1 comments

commented

Issue description

Cardboard Box Crashed Game When Picking Up Oritech Machine. Now when I load up my world it just insta-crashes due to the interaction between the Cardboard Box and the Oritech Machine. I'm unsure if it was because there were items in the machine when RIght-Clicked or if the interaction just isn't meant to happen to begin with but the entire thing was an accident as I never meant to click on the machine in the first place. I attempted blacklisting the specific block that the box attempted to carry (to no avail.) Also attempted to re-create the issue in a creative world in the same modpack and couldn't get the game to crash again. I am unsure how to reproduce so I'll just put what I did originally below.

This is the small crash error it gave me as well:
The game crashed: ticking block entity
Error: java.lang.ClassCastException: class mekanism.common.tile.TileEntityCardboardBox cannot be cast to class rearth.oritech.util.MultiblockMachineController (mekanism.common.tile.TileEntityCardboardBox is in module [email protected] of loader 'TRANSFORMER' @756c67cd; rearth.oritech.util.MultiblockMachineController is in module [email protected] of loader 'TRANSFORMER' @756c67cd)

Steps to reproduce

  1. Obtain Cardboard Box
  2. Right-Click on Oritech Machine with Cores attached and Machine active
  3. Crash Game

Minecraft version

1.21.1 (Latest)

NeoForge version

21.1.122

Mekanism version

10.7.9 (GrandPower bugged)

Other relevant versions

Oritech Version - 0.14.3

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

https://pastebin.com/yFBKvpET

commented

That's on Oritech, their getCachedController is not checking that its block is still valid