Fix entity pathing not matching vanilla. Closes #6755

This commit is contained in:
LexManos committed 2020-06-12 16:24:27 -07:00
1 parent e374f62037
commit 07b62b77e6
3 files changed
+19 -3

No files matched your search

@@ -882,7 +882,7 @@ public interface IForgeBlock
@Nullable
default PathNodeType getAiPathNodeType(BlockState state, IBlockReader world, BlockPos pos, @Nullable MobEntity entity)
{
return state.isBurning(world, pos) ? PathNodeType.DANGER_FIRE : null;
return state.getBlock() == Blocks.LAVA ? PathNodeType.LAVA : state.isBurning(world, pos) ? PathNodeType.DAMAGE_FIRE : null;
}
/**