Simple Farming

Simple Farming

11M Downloads

Growing bushes do not post the CropGrowEvent

t2pellet opened this issue ยท 2 comments

commented

EDITED AGAIN:

Forge version:
1.15.2 - 31.2.31
Mods list:
Strawgolem & this

Issue:

When the berry bushes grow you dont call MinecraftForge.EVENT_BUS.post(BlockEvent.CropGrowEvent(...))

So anything that looks for that hook to do things with grown crops wont work with the berry bushes from your mod.

Thanks

commented

I closed it in a moment of confusion - the issue stands.
https://github.com/cweckerl/simplefarming/blob/1.15/src/main/java/enemeez/simplefarming/block/growable/BerryBushBlock.java

It just needs 2 lines added to the grow method there, one for CropGrowEvent.Pre and one for CropGrowEvent.Post

commented

Thanks! Done