Foam​Fix

Foam​Fix

97M Downloads

Crash while setting PropertyDirection

Muirrum opened this issue · 2 comments

commented

simeonradivoev/MatterOverdrive#680

User came to MO issue tracker with a FoamFix bug, said that it was an MO crash, definitely wasn't an MO crash.

commented

FoamFix overrides blockstates to increase performance, and as such seems to be implicated in crashes caused by a mod setting a property on a blockstate that doesn't support it.

The block in question only supports horizontal facings, and it seems ToughAsNails is attempting to give it a downward facing. The most likely cause of this is you aren't limiting your metadata values to horizontal facings, since you're using VALUES and ordinal() instead of getHorizontal(int) and getHorizontalIndex().

Considering that DOWN has an ordinal of 0, it seems ToughAsNails is attempting to use meta 0 as a default instead of checking getSubItems/getSubBlocks.

commented

FoamFix overrides blockstates to increase performance, and as such seems to be implicated in crashes caused by a mod setting a property on a blockstate that doesn't support it.

The block in question only supports horizontal facings, and it seems ToughAsNails is attempting to give it a downward facing. The most likely cause of this is you aren't limiting your metadata values to horizontal facings, since you're using VALUES and ordinal() instead of getHorizontal(int) and getHorizontalIndex().

Considering that DOWN has an ordinal of 0, it seems ToughAsNails is attempting to use meta 0 as a default instead of checking getSubItems/getSubBlocks.

And is possible disable it in the config?