Growthcraft Community Edition

Growthcraft Community Edition

1M Downloads

Ticking crash from rice crop

viceroy369 opened this issue ยท 8 comments

commented

Can you paste your config file? config/growthcraft/growthcraft_rice.cfg

According to the stack trace, RiceCrop is trying to get its drops list and for some reason the growthcraft is checking if valoegheses_be:brushland_grass has the is_radioactive property and that should only be applied to growthcraft blocks.

A screen shot of the affected area would help as well.

commented

I hadn't touched the Growthcraft configs so it's just the default settings. Unfortunately I deleted the test world this occurred in but it was in a village.

commented

Oh neat. Yeah I haven't touched the configs either and am running the same issue.

commented

@Alatyami, @EightBlade, @viceroy369

public void grow(World worldIn, Random random, BlockPos pos, IBlockState state) {
this.grow(worldIn, pos, state);
BlockPos posDown = pos.down();
IBlockState downBlockState = worldIn.getBlockState(posDown);
// IS_RADIOACTIVE causes a double growth.
if ( downBlockState.getValue(IS_RADIOACTIVE) ) {
this.grow(worldIn, pos, state);
}
}

There should be a check here to ensure you're looking at a PaddyBlock, it's likely caused by a worldgen mistake.

The paddy was generated along with the rice, then something quietly replaced the paddy without triggering the neighbour changed callbacks which would cause the rice to drop as an item.

I'm very curious though, is isRadioactive now a thing in minecraft's base? or is it some interface that's being implemented indirectly

commented

@IceDragon200 , that makes sense ... thanks.

commented

Is there a way to fix it?

commented

absolutely, it'll be in our next release

commented

Great! ty.