Improvable Skills 3

Improvable Skills 3

4M Downloads

Plant growth skill incompatibility with Regions Unexplored.

Maxi90909 opened this issue ยท 4 comments

commented

latest.log

Basically neruina kicked me from my world due to me becoming a ticking player when the plant growth skill tried to grow a plant from Regions Unexplored. I am on Neoforge 1.21.1 in a self created modpack world.

commented

Can you try bonemealing the plant and see if anything changes?

The issue I see here is this:

java.lang.ClassCastException: class net.neoforged.neoforge.registries.DeferredHolder cannot be cast to class net.minecraft.world.level.block.DoublePlantBlock (net.neoforged.neoforge.registries.DeferredHolder is in module [email protected] of loader 'TRANSFORMER' @4b998742; net.minecraft.world.level.block.DoublePlantBlock is in module [email protected] of loader 'TRANSFORMER' @4b998742)
	at TRANSFORMER/[email protected]/net.regions_unexplored.world.level.block.plant.grass.RuSandyPlantBlock.performBonemeal(RuSandyPlantBlock.java:99)
	at TRANSFORMER/[email protected]/net.minecraft.world.item.BoneMealItem.applyBonemeal(BoneMealItem.java:77)
	at TRANSFORMER/[email protected]/org.zeith.improvableskills.custom.skills.SkillGrowth.growAround(SkillGrowth.java:63)

IS3 calls BoneMealItem.applyBonemeal method with the given block information, the issue is HERE

where the RuBlocks.SANDY_TALL_GRAS (DeferredHolder) is being cast into (DoublePlantBlock), but what it should've been was (DoublePlantBlock) RuBlocks.SANDY_TALL_GRASS.get() (the .get() part specifically)

This issue does not seem to be linked to IS3 directly in any way besides being triggered by it. Same would happen when using normal bonemeal on the plants!

commented

Linking this error for your convenience: UHQ-GAMES-MODS/RegionsUnexplored#17

commented

Additionally, after looking through a little more sources, this is another issue of the same kind that may or may not come out of shadows eventually: