Chicken-Bones / ForgeMultipart

An API for dynamically handling different functional parts in the one block space.
Other
119 stars 55 forks source link

ClassCastException when receiving vanilla MovingObjectPositions #393

Open falkreon opened 7 years ago

falkreon commented 7 years ago

The reduceMOP function in BlockMultipart blindly assumes that the MovingObjectPosition is an ExtendedMOP. This is a bad assumption.

We got word of the problem originally over here: https://github.com/elytra/FruitPhone/issues/13

Expected: Calling BlockMultipart::getPickBlock in a manner identical to vanilla produces the same result as if the block were picked.

Observed: Client crashes.

Known Workarounds: Crash is only known to occur in interactions with specific mods, so removing either FMP or the mod it's interacting with is sufficient to stop the problem.