Atmospheric

Atmospheric

22M Downloads

Damaging plant block classes do not override the `getAdjacentBlockPathType` method from `IBlockExtension`

Closed this issue ยท 1 comments

commented

Implementers of the YuccaPlant interface, as well as BarrelCactusBlock, AloeVeraBlock, and AloeVeraTallBlock should override this method and return PathType.DANGER_OTHER to be consistent with other damaging plant blocks, and to encourage mobs to avoid walking near these plants.

commented

Technically this is automatically handled, if a block's neighbors return NULL for getAdjacentBlockPathType it goes to the PathType of the main block and if its DAMAGE_OTHER it sets it to DANGER_OTHER, but for the sake of just being sure I'll set it in the block classes

Image